From 27c0e6226b483a6eeb44d7b3059b2e39c241e00e Mon Sep 17 00:00:00 2001 From: yalei Date: Tue, 7 Mar 2017 18:07:40 +0800 Subject: [PATCH] Edit example code The original code forget to import the `random` module and the `EntityRecognizer` module. --- website/docs/usage/entity-recognition.jade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/usage/entity-recognition.jade b/website/docs/usage/entity-recognition.jade index 9fc7dddd9..210b04337 100644 --- a/website/docs/usage/entity-recognition.jade +++ b/website/docs/usage/entity-recognition.jade @@ -138,7 +138,9 @@ p +code. import spacy + import random from spacy.gold import GoldParse + from spacy.language import EntityRecognizer train_data = [ ('Who is Chaka Khan?', [(7, 17, 'PERSON')]),