diff --git a/collect_dict.py b/collect_dict.py index 9459673..04175f4 100755 --- a/collect_dict.py +++ b/collect_dict.py @@ -7,7 +7,7 @@ src_lang = sys.argv[1] trg_lang = sys.argv[2] weight = int(sys.argv[3]) -dictionaries_path = '../dictionaries' +dictionaries_path = 'dictionaries' for dname in os.listdir(dictionaries_path): src_path = '%s/%s/%s.bz2' % (dictionaries_path, dname, src_lang) diff --git a/dictionaries/enhr/en.bz2 b/dictionaries/enhr/en.bz2 new file mode 100644 index 0000000..59a4a79 Binary files /dev/null and b/dictionaries/enhr/en.bz2 differ diff --git a/dictionaries/enhr/hr.bz2 b/dictionaries/enhr/hr.bz2 new file mode 100644 index 0000000..0703335 Binary files /dev/null and b/dictionaries/enhr/hr.bz2 differ diff --git a/dictionaries/icd/en.bz2 b/dictionaries/icd/en.bz2 new file mode 100644 index 0000000..8a3587c Binary files /dev/null and b/dictionaries/icd/en.bz2 differ diff --git a/dictionaries/icd/pl.bz2 b/dictionaries/icd/pl.bz2 new file mode 100644 index 0000000..dfe395e Binary files /dev/null and b/dictionaries/icd/pl.bz2 differ diff --git a/dictionaries/logofag/en.bz2 b/dictionaries/logofag/en.bz2 new file mode 100644 index 0000000..7d5bd59 Binary files /dev/null and b/dictionaries/logofag/en.bz2 differ diff --git a/dictionaries/logofag/pl.bz2 b/dictionaries/logofag/pl.bz2 new file mode 100644 index 0000000..42329a3 Binary files /dev/null and b/dictionaries/logofag/pl.bz2 differ diff --git a/dictionaries/logofag_full/en.bz2 b/dictionaries/logofag_full/en.bz2 new file mode 100644 index 0000000..f192a7a Binary files /dev/null and b/dictionaries/logofag_full/en.bz2 differ diff --git a/dictionaries/logofag_full/pl.bz2 b/dictionaries/logofag_full/pl.bz2 new file mode 100644 index 0000000..e18a643 Binary files /dev/null and b/dictionaries/logofag_full/pl.bz2 differ diff --git a/dictionaries/test/en.bz2 b/dictionaries/test/en.bz2 new file mode 100644 index 0000000..86f35c9 Binary files /dev/null and b/dictionaries/test/en.bz2 differ diff --git a/dictionaries/test/pl.bz2 b/dictionaries/test/pl.bz2 new file mode 100644 index 0000000..5fe8c26 Binary files /dev/null and b/dictionaries/test/pl.bz2 differ diff --git a/sentence_lemmatizer.py b/sentence_lemmatizer.py index 33abd1d..d745d33 100755 --- a/sentence_lemmatizer.py +++ b/sentence_lemmatizer.py @@ -13,7 +13,7 @@ def lemmatize_sentences(language_code, sentences): 'language':language_code, 'sentences':sentences } - response = requests.post(url = 'http://127.0.0.1:10002/preprocess', json = data) + response = requests.post(url = 'http://concordia-preprocessor:9001/preprocess', json = data) response_json = json.loads(response.text) result = {'normalized':[], 'lemmatized':[]}