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.

17 lines
469 B

1 year ago
  1. import os
  2. import sys
  3. Indok = sys.argv[1]
  4. Outdok = sys.argv[2]
  5. with open(Indok) as InDok:
  6. with open(Outdok, 'a') as OutDok:
  7. for line in InDok:
  8. linelist_lower = []
  9. linelist = eval(line[:-1])
  10. for word in linelist:
  11. if len(word) > 1:
  12. linelist_lower.append(word.lower())
  13. OutDok.write('[[\'' + str(' '.join(linelist_lower)) + '\'],[\'Soon\']]' )
  14. OutDok.write('\n')