kmadathil / sanskrit_parser

Parsers for Sanskrit / संस्कृतम्
MIT License
68 stars 21 forks source link

Vakya Analysis - Add conjunctive and disjunctive forms #138

Closed kmadathil closed 3 years ago

kmadathil commented 4 years ago

form 1 ramaH ca lakzmaRaH ca gacCataH ramaH ca lakzmaRaH ca sItA ca gacCanti form 2 ramaH lakzmaRaH ca gacCataH form 1a/2a gacCati instead of gacCataH

Disjunctive (all these forms with vA)

Possible solution

Preprocess graph (form -> same viBakti (in general sense, including tip) -> (ca)*)0+ (form -> same viBakti (in general sense, including tip) -> (ca))

Add "optional" linga/vacana to last ca/vA form, modify match function to check for these optional linga-vacanas as well (needed?). Afterwards, run the normal edge insertion algorithms.

kmadathil commented 3 years ago

Fixed in 2c487774f794af84b2a73972928e5796650ba696