Commit 65e21b2a authored by Kavindu Jayawardana 's avatar Kavindu Jayawardana

Grammer EF 2

parent 28aa4db0
import spacy
nlp = spacy.load("en_core_web_sm")
from gingerit.gingerit import GingerIt
nlp = spacy.load("en_core_web_sm")
text1 = ("We needed to play Cricket, but we was unable to buy ball, then we came back to hostel and start study")
parser = GingerIt()
parser.parse(text1)
result = parser.parse(text1)
print(result)
text = ("I'll be there in time, but I also have to do my homhomework too,although I should finish them,so I may be late. And one more thing, can I use your car ?. Anyway after today I also need to work hard because my exam is in the next month.")
doc = nlp(text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment