mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Add note on L in long integers in Python 2
This commit is contained in:
parent
df920ba0e7
commit
fbe105f1eb
|
@ -38,6 +38,11 @@ p
|
|||
assert doc.vocab.strings[u'coffee'] == 3197928453018144401
|
||||
assert doc.vocab.strings[3197928453018144401] == u'coffee'
|
||||
|
||||
+aside("What does 'L' at the end of a hash mean?")
|
||||
| If you return a hash value in the #[strong Python 2 interpreter], it'll
|
||||
| show up as #[code 3197928453018144401L]. The #[code L] just means "long
|
||||
| integer" – it's #[strong not] actually a part of the hash value.
|
||||
|
||||
p
|
||||
| Now that all strings are encoded, the entries in the vocabulary
|
||||
| #[strong don't need to include the word text] themselves. Instead,
|
||||
|
|
Loading…
Reference in New Issue
Block a user