fix
Browse files- textInput.py +2 -2
textInput.py
CHANGED
|
@@ -10,7 +10,7 @@ import run
|
|
| 10 |
from BERT_inference import BertClassificationModel
|
| 11 |
|
| 12 |
|
| 13 |
-
def
|
| 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 |
-
|
|
|
|
| 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)
|