clips / pattern

Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
https://github.com/clips/pattern/wiki
BSD 3-Clause "New" or "Revised" License
8.72k stars 1.58k forks source link

Fix/english particle verbs to dev #314

Open JakobSteixner opened 3 years ago

JakobSteixner commented 3 years ago

Correct results for pattern.en.lemma/pattern.en.conjugate/pattern.en.tenses with particle verbs by splitting the input into verb stem and sattelites (first word and everything else) before doing the base class _Verb processing.

example:

>>> import pattern.en as enp
>>> print(enp.conjugate("dispose of", list(enp.tenses("discarded"))[0])) # old result was: 'dispose offed'
'disposed of'
coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.1%) to 68.392% when pulling 9a51869d6f688d34e6604c5dd877ad016da00e80 on JakobSteixner:fix/english-particle-verbs-to-dev into 17f215438166729114762c3d9b3179dacd31490d on clips:development.