Beispiel #1
0
@author: erick
"""

from nlp import NLP
import time                

object_nlp = NLP()

begin = time.time()

string = u'Ich sehe eine roten Apfel. Ich helfe der Kind.'
object_nlp.setDoc(string)

#dsobject_nlp.docDetails()

errors = object_nlp.checkSatz(2)

finish = time.time()
#print("%.2fs"% (finish-begin))  


#print(f'Frase: {object_nlp.doc}\n')
for error in errors:
    print(f'Erro: {error["match"]}')
    print(f'Correção: {error["tip"]}\n')
        

#Generate Question

#fragen = get_fragen()
#patterns = get_patterns()