Created
December 21, 2018 10:50
-
-
Save jarib/cd51c0b15dd8421c9f607e860f796b08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spacy | |
nlp = spacy.load('data/models/model7') | |
for idx, sent in enumerate(nlp('Hva heter du? Jeg heter Jonas.').sents): | |
print (idx, sent) | |
# | |
# Output: | |
# | |
# 0 Hva heter du? Jeg heter Jonas. | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment