mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
Improve Token.prob and Lexeme.prob docs (resolves #3701)
This commit is contained in:
parent
914f4b2938
commit
377ab1cffb
|
@ -172,7 +172,7 @@ struct.
|
||||||
| `prefix` | <Abbr title="uint64_t">`attr_t`</Abbr> | Length-N substring from the start of the lexeme. Defaults to `N=1`. |
|
| `prefix` | <Abbr title="uint64_t">`attr_t`</Abbr> | Length-N substring from the start of the lexeme. Defaults to `N=1`. |
|
||||||
| `suffix` | <Abbr title="uint64_t">`attr_t`</Abbr> | Length-N substring from the end of the lexeme. Defaults to `N=3`. |
|
| `suffix` | <Abbr title="uint64_t">`attr_t`</Abbr> | Length-N substring from the end of the lexeme. Defaults to `N=3`. |
|
||||||
| `cluster` | <Abbr title="uint64_t">`attr_t`</Abbr> | Brown cluster ID. |
|
| `cluster` | <Abbr title="uint64_t">`attr_t`</Abbr> | Brown cluster ID. |
|
||||||
| `prob` | `float` | Smoothed log probability estimate of the lexeme's type. |
|
| `prob` | `float` | Smoothed log probability estimate of the lexeme's word type (context-independent entry in the vocabulary). |
|
||||||
| `sentiment` | `float` | A scalar value indicating positivity or negativity. |
|
| `sentiment` | `float` | A scalar value indicating positivity or negativity. |
|
||||||
|
|
||||||
### Lexeme.get_struct_attr {#lexeme_get_struct_attr tag="staticmethod, nogil" source="spacy/lexeme.pxd"}
|
### Lexeme.get_struct_attr {#lexeme_get_struct_attr tag="staticmethod, nogil" source="spacy/lexeme.pxd"}
|
||||||
|
|
|
@ -161,6 +161,6 @@ The L2 norm of the lexeme's vector representation.
|
||||||
| `is_stop` | bool | Is the lexeme part of a "stop list"? |
|
| `is_stop` | bool | Is the lexeme part of a "stop list"? |
|
||||||
| `lang` | int | Language of the parent vocabulary. |
|
| `lang` | int | Language of the parent vocabulary. |
|
||||||
| `lang_` | unicode | Language of the parent vocabulary. |
|
| `lang_` | unicode | Language of the parent vocabulary. |
|
||||||
| `prob` | float | Smoothed log probability estimate of the lexeme's type. |
|
| `prob` | float | Smoothed log probability estimate of the lexeme's word type (context-independent entry in the vocabulary). |
|
||||||
| `cluster` | int | Brown cluster ID. |
|
| `cluster` | int | Brown cluster ID. |
|
||||||
| `sentiment` | float | A scalar value indicating the positivity or negativity of the lexeme. |
|
| `sentiment` | float | A scalar value indicating the positivity or negativity of the lexeme. |
|
||||||
|
|
|
@ -465,7 +465,7 @@ The L2 norm of the token's vector representation.
|
||||||
| `dep_` | unicode | Syntactic dependency relation. |
|
| `dep_` | unicode | Syntactic dependency relation. |
|
||||||
| `lang` | int | Language of the parent document's vocabulary. |
|
| `lang` | int | Language of the parent document's vocabulary. |
|
||||||
| `lang_` | unicode | Language of the parent document's vocabulary. |
|
| `lang_` | unicode | Language of the parent document's vocabulary. |
|
||||||
| `prob` | float | Smoothed log probability estimate of token's type. |
|
| `prob` | float | Smoothed log probability estimate of token's word type (context-independent entry in the vocabulary). |
|
||||||
| `idx` | int | The character offset of the token within the parent document. |
|
| `idx` | int | The character offset of the token within the parent document. |
|
||||||
| `sentiment` | float | A scalar value indicating the positivity or negativity of the token. |
|
| `sentiment` | float | A scalar value indicating the positivity or negativity of the token. |
|
||||||
| `lex_id` | int | Sequential ID of the token's lexical type. |
|
| `lex_id` | int | Sequential ID of the token's lexical type. |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user