Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect conditional tense via spacy?

is there any function/attribute built in spacy to uncover tokens in conditional tense? Or some possible detour to get to those?

like image 849
Ratatam Avatar asked Nov 15 '25 02:11

Ratatam


1 Answers

Spacy implements POS tagging and dependency parsing. Dependency approach to syntax is more focused on the surface form and the role of single words. I'd say verb tense and mood is on the verge of syntax and semantics and is beyond the scope of dependency parsing. I can't provide you any simple solution but I think that you might be better off using a LFG parser and look for mood and tense in the F-structure (for instance this: http://ioperm.org/lfg-parser.html). There is also a library called pattern that is advertised as able to recognise mood, you can have a look: http://www.clips.ua.ac.be/pages/pattern-en#modality

If you'd like to stick to Spacy then perhaps you could approach the issue heuristically by writing simple rules.

like image 141
adam.ra Avatar answered Nov 17 '25 22:11

adam.ra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!