QNLP  v1.0
main_process_corpus.py
Go to the documentation of this file.
1 """
2 Used to process the QNLP SQLite DB output.
3 Script remains but methods are largely unused.
4 """
5 
7 import os
8 
9 if __name__ == "__main__":
10  if len(os.sys.argv) < 2:
11  raise("Please specify the path to basis words as arg 1, corpus as arg 2, and processing mode as arg 3")
12  BasisPath = os.sys.argv[1]
13  CorpusPath = os.sys.argv[2]
14 
15  if len(os.sys.argv) == 4:
16  proc_mode = os.sys.argv[3]
17  else:
18  proc_mode=0
19 
20  run(BasisPath, CorpusPath, proc_mode, db_name="qnlp_tagged_corpus")
def run(BasisPath, CorpusPath, proc_mode=0, db_name="qnlp_tagged_corpus")