2014-07-07 10:47:21 +00:00
|
|
|
from spacy.spacy cimport Language
|
2014-08-22 14:35:48 +00:00
|
|
|
from spacy.lexeme cimport StringHash
|
2014-08-23 17:55:06 +00:00
|
|
|
from spacy.word cimport Word
|
2014-07-07 02:29:24 +00:00
|
|
|
|
|
|
|
|
2014-08-22 14:35:48 +00:00
|
|
|
cdef class PennTreebank3(Language):
|
|
|
|
cpdef list find_substrings(self, unicode word)
|
2014-07-07 10:47:21 +00:00
|
|
|
|
2014-07-07 02:29:24 +00:00
|
|
|
|
2014-08-22 14:35:48 +00:00
|
|
|
cdef PennTreebank3 PTB3
|
2014-07-07 02:29:24 +00:00
|
|
|
|
2014-08-23 17:55:06 +00:00
|
|
|
cpdef Word lookup(unicode word)
|
|
|
|
cpdef list tokenize(unicode string)
|
2014-07-07 02:29:24 +00:00
|
|
|
cpdef unicode unhash(StringHash hash_value)
|