Update universe.json

This commit is contained in:
Ines Montani 2019-02-12 18:05:51 +01:00 committed by GitHub
parent 75a40f56fc
commit 5dd39d8697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1121,7 +1121,7 @@
"nlp = spacy.load('en')",
"nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)",
"text = 'This is an english text.'",
"doc = nlp(text)"
"doc = nlp(text)",
"# document level language detection. Think of it like average language of the document!",
"print(doc._.language)",
"# sentence level language detection",