QINGCHE commited on
Commit
7589954
2 Parent(s): b774aca 4cd64a2
Files changed (1) hide show
  1. textInput.py +2 -2
textInput.py CHANGED
@@ -10,7 +10,7 @@ import run
10
  from BERT_inference import BertClassificationModel
11
 
12
 
13
- def text_dump_to_json(text,topic_num,max_length):
14
  lines = util.seg(text)
15
  sentences = run.texClear(lines)
16
  print(sentences)
@@ -108,4 +108,4 @@ if __name__ == "__main__":
108
  with open('test.txt', 'r', encoding='utf-8') as f:
109
  data = f.read()
110
  # print(data)
111
- text_dump_to_json(data,10,50)
 
10
  from BERT_inference import BertClassificationModel
11
 
12
 
13
+ def text_dump_to_lines(text,topic_num,max_length):
14
  lines = util.seg(text)
15
  sentences = run.texClear(lines)
16
  print(sentences)
 
108
  with open('test.txt', 'r', encoding='utf-8') as f:
109
  data = f.read()
110
  # print(data)
111
+ text_dump_to_lines(data,10,50)