dictionaries, paths

This commit is contained in:
Rafał Jaworski 2019-06-13 12:44:16 +02:00
parent 7dda4c480a
commit 193ad4b01d
12 changed files with 2 additions and 2 deletions

View File

@ -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)

BIN
dictionaries/enhr/en.bz2 Normal file

Binary file not shown.

BIN
dictionaries/enhr/hr.bz2 Normal file

Binary file not shown.

BIN
dictionaries/icd/en.bz2 Normal file

Binary file not shown.

BIN
dictionaries/icd/pl.bz2 Normal file

Binary file not shown.

BIN
dictionaries/logofag/en.bz2 Normal file

Binary file not shown.

BIN
dictionaries/logofag/pl.bz2 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dictionaries/test/en.bz2 Normal file

Binary file not shown.

BIN
dictionaries/test/pl.bz2 Normal file

Binary file not shown.

View File

@ -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':[]}