File size: 300 Bytes
cbc1d23
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import run

def text_dump_to_json(text):
    lines = [x.strip() for x in text.split("\n") if x.strip()!='']
    data = {"text":lines}
    sentences = run.texClear(lines)
    keys, output = run.textToAb(sentences,lines,5,50)
    return keys, output

def file_dump_to_json(file):

    return