Update examples

This commit is contained in:
ines 2017-05-29 01:09:26 +02:00
parent 42cf414138
commit 9d74810f6f
1 changed files with 4 additions and 4 deletions

View File

@ -54,8 +54,8 @@ p
+aside-code("Example"). +aside-code("Example").
doc = nlp(u'I love coffee') doc = nlp(u'I love coffee')
assert doc.vocab.strings[u'coffee'] == 3197928453018144401L assert doc.vocab.strings[u'coffee'] == 3197928453018144401
assert doc.vocab.strings[3197928453018144401L] == u'coffee' assert doc.vocab.strings[3197928453018144401] == u'coffee'
beer_hash = doc.vocab.strings.add(u'beer') beer_hash = doc.vocab.strings.add(u'beer')
assert doc.vocab.strings[u'beer'] == beer_hash assert doc.vocab.strings[u'beer'] == beer_hash
@ -343,8 +343,8 @@ p
+code-new. +code-new.
nlp.vocab.strings.add(u'coffee') nlp.vocab.strings.add(u'coffee')
nlp.vocab.strings[u'coffee'] # 3197928453018144401L nlp.vocab.strings[u'coffee'] # 3197928453018144401
other_nlp.vocab.strings[u'coffee'] # 3197928453018144401L other_nlp.vocab.strings[u'coffee'] # 3197928453018144401
+code-old. +code-old.
nlp.vocab.strings[u'coffee'] # 3672 nlp.vocab.strings[u'coffee'] # 3672