File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ src/examples/semantic_relations/related_words_out.txt
4
4
src /examples /semantic_relations /related_words_in1.txt
5
5
src /examples /config_password.php
6
6
/vendor
7
+ /data
7
8
composer.lock
8
9
.idea
9
10
Original file line number Diff line number Diff line change 29
29
30
30
31
31
// Serve file as XML (prompt for download, remove if unnecessary)
32
- // header('Content-type: "text/xml"; charset="utf8"');
33
- // header('Content-disposition: attachment; filename="'.NAME_DB.'_'.date('Y-m-d').'.gexf"');
32
+ header ('Content-type: "text/xml"; charset="utf8" ' );
33
+ header ('Content-disposition: attachment; filename=" ' .NAME_DB .'_ ' .date ('Y-m-d ' ).'.gexf" ' );
34
34
35
35
//echo \piwidict\export\PWGEXF::getRelatedWords();
36
36
echo PWGEXF ::getRelatedWords ();
Original file line number Diff line number Diff line change 2
2
3
3
require '../../vendor/autoload.php ' ;
4
4
5
+ use cijic \phpMorphy ;
6
+
5
7
use piwidict \Piwidict ;
6
8
use piwidict \PWInit ;
7
9
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ static public function createVocabularyRelatedTables() {
145
145
146
146
}
147
147
148
- /** Counts frequency of occurance of lemmas in meanings and writes to field `pw_lemma_LANG_CODE.frequency`,
148
+ /** Counts frequency of occurrence of lemmas in meanings and writes to field `pw_lemma_LANG_CODE.frequency`,
149
149
* if this lemma does not exist in table, that it added there with origin=2 and meaning_id where it has be found.
150
150
*/
151
151
static public function count_frequency_lemma_in_meaning () {
@@ -172,7 +172,7 @@ static public function count_frequency_lemma_in_meaning() {
172
172
173
173
// Create phpMorphy instance
174
174
try {
175
- $ morphy = new phpMorphy ($ dir , $ lang , $ opts );
175
+ $ morphy = new \ phpMorphy ($ dir , $ lang , $ opts );
176
176
} catch (phpMorphy_Exception $ e ) {
177
177
die ('Error occured while creating phpMorphy instance: ' . PHP_EOL . $ e );
178
178
}
You can’t perform that action at this time.
0 commit comments