Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
tsproisl committed Jul 6, 2023
1 parent 817c2e5 commit 004321a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/build/markdown/somajo.md
Expand Up @@ -464,7 +464,7 @@ Token objects store a piece of text (in the end a single token) with additional
* **markup_class** (*{'start', 'end'}, optional* *(**default=None**)*) – If markup=True, then markup_class must be either “start” or “end”.
* **markup_eos** (*bool, optional* *(**default=None**)*) – Is the markup token a sentence boundary?
* **locked** (*bool, (**default=False**)*) – Mark the token as locked.
* **token_class** (*{'URL', 'XML_entity', 'XML_tag', 'abbreviation', 'action_word', 'amount', 'date', 'email_address', 'emoticon', 'hashtag', 'measurement', 'mention', 'number', 'ordinal', 'regular', 'semester', 'symbol', 'time'}, optional* *(**default=None**)*) – The class of the token, e.g. “regular”, “emoticon”, “url”, etc.
* **token_class** (*{'URL', 'XML_entity', 'XML_tag', 'abbreviation', 'action_word', 'amount', 'date', 'email_address', 'emoticon', 'hashtag', 'measurement', 'mention', 'number', 'ordinal', 'regular', 'semester', 'symbol', 'time'}, optional* *(**default=None**)*) – The class of the token, e.g. “regular”, “emoticon”, “URL”, etc.
* **space_after** (*bool, (**default=True**)*) – Was there a space after the token in the original data?
* **original_spelling** (*str, optional* *(**default=None**)*) – The original spelling of the token, if it is different from the one in text.
* **first_in_sentence** (*bool, (**default=False**)*) – Is it the first token of a sentence?
Expand Down
2 changes: 1 addition & 1 deletion somajo/token.py
Expand Up @@ -17,7 +17,7 @@ class Token:
locked : bool, (default=False)
Mark the token as locked.
token_class : {'URL', 'XML_entity', 'XML_tag', 'abbreviation', 'action_word', 'amount', 'date', 'email_address', 'emoticon', 'hashtag', 'measurement', 'mention', 'number', 'ordinal', 'regular', 'semester', 'symbol', 'time'}, optional (default=None)
The class of the token, e.g. "regular", "emoticon", "url", etc.
The class of the token, e.g. "regular", "emoticon", "URL", etc.
space_after : bool, (default=True)
Was there a space after the token in the original data?
original_spelling : str, optional (default=None)
Expand Down

0 comments on commit 004321a

Please sign in to comment.