Skip to main content

Module syntax_analyzer

Module syntax_analyzer 

Source
Expand description

Rule-based Syntax Analysis

Deterministic POS tagging and dependency parsing without ML models. Lightweight implementation using pattern matching and linguistic rules.

Features:

  • Part-of-Speech (POS) tagging
  • Dependency parsing (simplified)
  • Phrase extraction (noun phrases, verb phrases)
  • Sentence segmentation
  • Token classification

Structs§

Dependency
A dependency arc between tokens
NounPhrase
A noun phrase
SyntaxAnalyzer
Rule-based syntax analyzer
SyntaxAnalyzerConfig
Configuration for syntax analyzer
Token
A token with POS tag

Enums§

DependencyRelation
Dependency relation type
POSTag
Part-of-Speech tag