Cyberlaywer/build/tfgpu-cyberlaywer/test_runwithgen.py

17 lines
322 B
Python
Raw Normal View History

2021-10-18 18:22:03 +02:00
from updateDatabase import *
pluriDBupdater = PluritonUpdater()
pluriDBupdater.create_hklDB_from_csv('Translations.txt')
pluriDBupdater.load_DB_into_FASTsearch_and_generate_BOW()
#pluriDBupdater.loadModels()
einfach, schwer = pluriDBupdater.searchNearest2Translate('Die Maschinen besser')
print('Schwer', schwer)