Skip to content

Commit 01187b8

Browse files
committed
Merge branch 'master' of https://github.com/componavt/piwidict
2 parents 94da72b + 36d3d36 commit 01187b8

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Machine-readable Wiktionary PHP API.
55

66
"piwidict" = PHP+wiki+wiktionary+dictionary, https://github.com/componavt/piwidict
77

8-
wikokit (c) 2005-2016, Wiktionary parser, https://github.com/componavt/wikokit
8+
wikokit (c) 2005-2017, Wiktionary parser, https://github.com/componavt/wikokit
99

10-
piwidict (c) 2014-2016, PHP framework to work with the Wiktionary parsed database.
10+
piwidict (c) 2014-2017, PHP framework to work with the Wiktionary parsed database.
1111

1212
Download machine-readable Wiktionary
1313
http://whinger.krc.karelia.ru/soft/wikokit/index.html
@@ -25,11 +25,11 @@ $ composer update componavt/piwidict
2525
See [componavt/piwidict](https://packagist.org/packages/componavt/piwidict) at packagist.org
2626

2727

28-
Cool Composer commands:
28+
Use Composer commands in order to update dependencies:
2929
``` bash
3030
$ composer clearcache
31-
$ composer dumpautoload -o
3231
$ composer update
32+
$ composer dumpautoload -o
3333
```
3434

3535
Great artisan commans:

src/examples/export/related_words_for_Gephi.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
$php_self = "related_words_for_Gephi.php";
2929

3030

31-
$pos_name = "noun";
32-
//$pos_name = "adjective"; ++
33-
//$pos_name = "verb";
31+
$pos_name = "noun"; // failed counter:139829
32+
//$pos_name = "adjective"; // +++
33+
//$pos_name = "verb"; // +++ only cmd php
34+
//$pos_name = "adverb"; // +++ only cmd php
3435

3536
$pos_id = TPOS::getIDByName($pos_name);
3637
// Serve file as XML (prompt for download, remove if unnecessary)

src/piwidict/export/PWGEXF.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class PWGEXF {
1111

1212
// only words for this POS should be found
1313
static public function getRelatedWords($pos_id_filter='', String $lang_code_filter='ru') {
14-
14+
15+
// ? todo filter Names with no Inlinks (in order to skip names of rivers, cities, peoples)
16+
1517
$link_db = Piwidict::getDatabaseConnection();
1618

1719
$node_table = PWLemma::getTableName();
@@ -67,7 +69,8 @@ static public function getRelatedWords($pos_id_filter='', String $lang_code_filt
6769
while ( // $counter<$limit && // DEBUG
6870
$page_obj = $res_page_id->fetch_object()) {
6971

70-
// DEBUG if( $page_obj->page_id < 2340) continue;
72+
//DEBUG
73+
// if( $page_obj->page_id < 151000) continue;
7174

7275
// get list of page_id of related words (synonyms, antonyms, etc.)
7376
// po - page object with all fields retrieved from the parsed wiktionary database

0 commit comments

Comments
 (0)