mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Edit example code
The original code forget to import the `random` module and the `EntityRecognizer` module.
This commit is contained in:
parent
f710fc3f2d
commit
27c0e6226b
|
@ -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