Search on legal documents using Tensorflow and a web_actix web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
467 B

  1. from updateDatabase import *
  2. print('Init Pluriton..')
  3. pluriDBupdater = PluritonUpdater()
  4. print('done')
  5. print('creaing hklDB from the Translations..')
  6. pluriDBupdater.create_hklDB_from_csv('Translations.txt')
  7. print('done')
  8. print('generating BOW models..')
  9. pluriDBupdater.load_DB_into_FASTsearch_and_generate_BOW()
  10. print('done')
  11. #pluriDBupdater.loadModels()
  12. #einfach, schwer = pluriDBupdater.searchNearest2Translate('Die Maschinen besser')
  13. #print('Schwer', schwer)