Skip to content

Instantly share code, notes, and snippets.

@sharvaridhote
Created February 14, 2021 18:45
Show Gist options
  • Select an option

  • Save sharvaridhote/ac6ebb693a4bc47288fe0a1244ff158e to your computer and use it in GitHub Desktop.

Select an option

Save sharvaridhote/ac6ebb693a4bc47288fe0a1244ff158e to your computer and use it in GitHub Desktop.
Model testing
# Testing the model = https://en.wikipedia.org/wiki/Che_Guevara - positive sentence
loaded_model = spacy.load('model_artifactnewdatatest1LR0.01L22E-4')
test_text= "Such positions also allowed him to play a central role in training the militia forces who repelled the Bay of Pigs Invasion and bringing the Soviet nuclear-armed ballistic missiles to Cuba which precipitated the 1962 Cuban Missile Crisis "
doc=loaded_model(test_text)
doc.cats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment