





# Perform standard imports
import spacy
nlp = spacy.load('en_core_web_sm')

# Import the game script
import game


# Enter your text here:
text = u"The quick brown fox jumped over the lazy dog's back."


# Make your Doc object and pass it into the scorer:
doc = nlp(text)
print(game.scorer(doc))





# For practice, visualize your fine-grained POS tags (shown in the third column):
print(f"{'TOKEN':{10}} {'COARSE':{8}} {'FINE':{6}} {'DESCRIPTION'}")
print(f"{'-----':{10}} {'------':{8}} {'----':{6}} {'-----------'}")

for token in doc:
    print(f'{token.text:{10}} {token.pos_:{8}} {token.tag_:{6}} {spacy.explain(token.tag_)}')



