Syntax Analysis Config
🔵 Default value: SyntaxOptions()
In the Syntax config, users can modify thresholds to determine what is considered a short or a long utterance, 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_utterance_max_word int = 3 # (1)
long_utterance_min_word: int = 12 # (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 words for an utterance to be tagged as short (e.g <=3 for the default)
- Minimum number of words for an utterance to be tagged as long (e.g >=12 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).