mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
* Improve API docs
This commit is contained in:
parent
fd1bb648cc
commit
d9bd3c611d
|
@ -50,32 +50,37 @@ Internals
|
||||||
|
|
||||||
|
|
||||||
.. autoclass:: spacy.tokens.Token
|
.. autoclass:: spacy.tokens.Token
|
||||||
:members:
|
.. automethod:: child
|
||||||
|
|
||||||
|
+--------------------------------------------------------------------------------+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| **Context-independent Attributes** (calculated once per orth-value in vocab) |
|
||||||
| Attribute | Type | Attribute | Type | Attribute | Type |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+===========+======+===========+=========+===========+====================================+
|
| Attribute | Type | Attribute | Type |
|
||||||
| orth | int | orth\_ | unicode | idx | int |
|
+=================+=============+===========+====================================+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| orth/orth\_ | int/unicode | __len__ | int |
|
||||||
| lemma | int | lemma\_ | unicode | cluster | int |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| lower/lower\_ | int/unicode | cluster | int |
|
||||||
| lower | int | lower\_ | unicode | length | int |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| norm/norm\_ | int/unicode | prob | float |
|
||||||
| norm | int | norm\_ | unicode | prob | float |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| shape/shape\_ | int/unicode | repvec | ndarray(shape=(300,), dtype=float) |
|
||||||
| shape | int | shape\_ | unicode | repvec | ndarray(shape=(300,), dtype=float) |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+-----------+------------------------------------+
|
| prefix/prefix\_ | int/unicode | | |
|
||||||
| prefix | int | prefix\_ | unicode | |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+------------------------------------------------+
|
| suffix/suffix\_ | int/unicode | | |
|
||||||
| suffix | int | suffix\_ | unicode | |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+------------------------------------------------+
|
| **Context-dependent Attributes** (calculated once per token in input) |
|
||||||
| pos | int | pos\_ | unicode | |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+------------------------------------------------+
|
| Attribute | Type | Attribute | Type |
|
||||||
| tag | int | tag\_ | unicode | |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+------------------------------------------------+
|
| whitespace\_ | unicode | string | unicode |
|
||||||
| dep | int | dep\_ | unicode | |
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
+-----------+------+-----------+---------+------------------------------------------------+
|
| pos/pos\_ | int/unicode | dep/dep\_ | int/unicode |
|
||||||
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
|
| tag/tag\_ | int/unicode | | |
|
||||||
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
|
| lemma/lemma\_ | int/unicode | | |
|
||||||
|
+-----------------+-------------+-----------+------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
.. py:class:: vocab.Vocab(self, data_dir=None, lex_props_getter=None)
|
.. py:class:: vocab.Vocab(self, data_dir=None, lex_props_getter=None)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user