PluriTon/build/tfgpu-pluriton/generateModels.py
2021-10-18 18:22:03 +02:00

18 lines
467 B
Python

from updateDatabase import *
print('Init Pluriton..')
pluriDBupdater = PluritonUpdater()
print('done')
print('creaing hklDB from the Translations..')
pluriDBupdater.create_hklDB_from_csv('Translations.txt')
print('done')
print('generating BOW models..')
pluriDBupdater.load_DB_into_FASTsearch_and_generate_BOW()
print('done')
#pluriDBupdater.loadModels()
#einfach, schwer = pluriDBupdater.searchNearest2Translate('Die Maschinen besser')
#print('Schwer', schwer)