mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 08:14:15 +03:00
Merge pull request #874 from badbye/patch-1
**Documentation**: Edit example code
This commit is contained in:
commit
3a5f726208
|
@ -138,7 +138,9 @@ p
|
||||||
|
|
||||||
+code.
|
+code.
|
||||||
import spacy
|
import spacy
|
||||||
|
import random
|
||||||
from spacy.gold import GoldParse
|
from spacy.gold import GoldParse
|
||||||
|
from spacy.language import EntityRecognizer
|
||||||
|
|
||||||
train_data = [
|
train_data = [
|
||||||
('Who is Chaka Khan?', [(7, 17, 'PERSON')]),
|
('Who is Chaka Khan?', [(7, 17, 'PERSON')]),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user