mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
* Add docstring to Lexeme
This commit is contained in:
parent
32f58b19d1
commit
6d1c08dafd
|
@ -32,6 +32,10 @@ cdef int set_lex_struct_props(LexemeC* lex, dict props, StringStore string_store
|
||||||
|
|
||||||
|
|
||||||
cdef class Lexeme:
|
cdef class Lexeme:
|
||||||
"""A dummy docstring"""
|
"""An entry in the vocabulary. A Lexeme has no string context --- it's a
|
||||||
|
word-type, as opposed to a word token. It therefore has no part-of-speech
|
||||||
|
tag, dependency parse, or lemma (lemmatization depends on the part-of-speech
|
||||||
|
tag).
|
||||||
|
"""
|
||||||
def __cinit__(self, int vec_size):
|
def __cinit__(self, int vec_size):
|
||||||
self.repvec = numpy.ndarray(shape=(vec_size,), dtype=numpy.float32)
|
self.repvec = numpy.ndarray(shape=(vec_size,), dtype=numpy.float32)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user