fix bug
Browse files- textInput.py +2 -1
textInput.py
CHANGED
@@ -2,9 +2,10 @@ import run
|
|
2 |
|
3 |
def text_dump_to_json(text,topic_num,max_length):
|
4 |
lines = [x.strip() for x in text.split("\n") if x.strip()!='']
|
5 |
-
data = {"text":lines}
|
6 |
sentences = run.texClear(lines)
|
7 |
keys, output = run.textToAb(sentences,lines,topic_num,max_length)
|
|
|
|
|
8 |
return keys, output
|
9 |
|
10 |
def file_dump_to_json(file):
|
|
|
2 |
|
3 |
def text_dump_to_json(text,topic_num,max_length):
|
4 |
lines = [x.strip() for x in text.split("\n") if x.strip()!='']
|
|
|
5 |
sentences = run.texClear(lines)
|
6 |
keys, output = run.textToAb(sentences,lines,topic_num,max_length)
|
7 |
+
keysText = "\n".join(keys)
|
8 |
+
outputText = "\n".join(output)
|
9 |
return keys, output
|
10 |
|
11 |
def file_dump_to_json(file):
|