naver / sqlova

Apache License 2.0
631 stars 165 forks source link

what's mean in "wvi_corenlp" #41

Open quuhua911 opened 5 years ago

quuhua911 commented 5 years ago

{"table_id":"1-1000181-1","phase":1,"question":"What is the current series where the new series began in June 2011?","question_tok":["What","is","the","current","series","where","the","new","series","began","in","June","2011","?"],"sql":{"sel":4,"conds":[[5,0,"New series began in June 2011"]],"agg":0},"query":{"sel":4,"conds":[[5,0,"New series began in June 2011"]],"agg":0},"wvi_corenlp":[[7,12]]}

In your markup training file "train_tok.jsonl", Like "wvi_corenlp":[[7,12]], what does that mean? How do I produce this file "train_tok.jsonl" with a new training set? thanks

zyc1310517843 commented 5 years ago

use annotate_ws.py to create *_tok.jsonl

quuhua911 commented 5 years ago

annotate_ws thanks so much!

zyc1310517843 commented 5 years ago

annotate_ws thanks so much!

first you should download "stanford-corenlp-full-2018-10-05" and "stanford-english-corenlp-2018-10-05-models.jar".
Then execution of "java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000" under the same directory of the two documents on appeal. after starting server,you can run annotate_wa.py

Qingkongji commented 3 years ago

When running annotate_wa.py, i got an error:ModuleNotFoundError: No module named 'stanza.nlp'. But i has installed stanza. Which package else should I install?