Fixing vocab doc

Replacing "like" with "love", coffee suffix should be "fee" but not "ffe"
This commit is contained in:
Pradeep Kumar Tippa 2018-02-07 14:55:12 +05:30 committed by GitHub
parent fd9fd275c5
commit ed7d268e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ p
| string to get its hash, or a hash to get its string:
+code.
doc = nlp(u'I like coffee')
doc = nlp(u'I love coffee')
assert doc.vocab.strings[u'coffee'] == 3197928453018144401
assert doc.vocab.strings[3197928453018144401] == u'coffee'
@ -70,7 +70,7 @@ p
- var style = [0, 1, 1, 0, 0, 1, 1]
+annotation-row(["I", "4690420944186131903", "X", "I", "I", true, false], style)
+annotation-row(["love", "3702023516439754181", "xxxx", "l", "ove", true, false], style)
+annotation-row(["coffee", "3197928453018144401", "xxxx", "c", "ffe", true, false], style)
+annotation-row(["coffee", "3197928453018144401", "xxxx", "c", "fee", true, false], style)
p
| The mapping of words to hashes doesn't depend on any state. To make sure