mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Hack around lack of distribution features for now.
This commit is contained in:
parent
4cb88c940b
commit
a44e15f623
|
@ -146,7 +146,8 @@ cdef class Language:
|
|||
# Delete last element.
|
||||
last_elem = deref(self.happax[0].end())
|
||||
free(<Orthography*>self.ortho[0][last_elem.first])
|
||||
free(<Distribution*>self.distri[0][last_elem.first])
|
||||
# TODO: Do this when we set distributions
|
||||
#free(<Distribution*>self.distri[0][last_elem.first])
|
||||
free(<Lexeme*>last_elem.second)
|
||||
self.happax[0].erase(last_elem.first)
|
||||
self.ortho[0].erase(last_elem.first)
|
||||
|
|
Loading…
Reference in New Issue
Block a user