Syntax Analysis Config
Default value: SyntaxOptions()
In the Syntax config, users can modify thresholds to determine what is considered a short or a long sentence, as well as select the spaCy model and the dependency tags used for certain syntax-related smart tags. More details are explained in Syntax Analysis.
Note that language-related defaults are dynamically selected based on the language specified in the Language Config (default is English). As such, the spaCy model and dependency tag lists will generally not need to be modified.
from pydantic import BaseModel
class SyntaxOptions(BaseModel):
short_sentence_max_token: int = 3 # (1)
long_sentence_min_token: int = 16 # (2)
spacy_model: SupportedSpacyModels = SupportedSpacyModels.use_default # Language-based default (3)
subj_tags: List[str] = [] # Language-based default value (4)
obj_tags: List[str] = [] # Language-based default value (5)
- Maximum number of tokens for a sentence to be tagged as short (e.g <=3 for the default)
- Minimum number of tokens for a sentence to be tagged as long (e.g >=16 for the default)
- spaCy model to use for syntax tagging.
- spaCy dependency tags used to determine whether a word is a subject (noun).
- spaCy dependency tags used to determine whether a word is an object (noun).