dictionaries, paths
This commit is contained in:
parent
7dda4c480a
commit
193ad4b01d
@ -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
BIN
dictionaries/enhr/en.bz2
Normal file
Binary file not shown.
BIN
dictionaries/enhr/hr.bz2
Normal file
BIN
dictionaries/enhr/hr.bz2
Normal file
Binary file not shown.
BIN
dictionaries/icd/en.bz2
Normal file
BIN
dictionaries/icd/en.bz2
Normal file
Binary file not shown.
BIN
dictionaries/icd/pl.bz2
Normal file
BIN
dictionaries/icd/pl.bz2
Normal file
Binary file not shown.
BIN
dictionaries/logofag/en.bz2
Normal file
BIN
dictionaries/logofag/en.bz2
Normal file
Binary file not shown.
BIN
dictionaries/logofag/pl.bz2
Normal file
BIN
dictionaries/logofag/pl.bz2
Normal file
Binary file not shown.
BIN
dictionaries/logofag_full/en.bz2
Normal file
BIN
dictionaries/logofag_full/en.bz2
Normal file
Binary file not shown.
BIN
dictionaries/logofag_full/pl.bz2
Normal file
BIN
dictionaries/logofag_full/pl.bz2
Normal file
Binary file not shown.
BIN
dictionaries/test/en.bz2
Normal file
BIN
dictionaries/test/en.bz2
Normal file
Binary file not shown.
BIN
dictionaries/test/pl.bz2
Normal file
BIN
dictionaries/test/pl.bz2
Normal file
Binary file not shown.
@ -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':[]}
|
||||
|
Loading…
Reference in New Issue
Block a user