writer / fitbert

Use BERT to Fill in the Blanks
https://pypi.org/project/fitbert/
Apache License 2.0
82 stars 14 forks source link

Find all related words #1

Open sam-writer opened 5 years ago

sam-writer commented 5 years ago

The delemmatize flag is convenient, but, for example:

dl = Delemmatizer()
dl('calculation')
# ['calculation', 'calculations']

it would be nice to find all derivationally related "words" (including multi-word verb phrases), something like:

dl = Delemmatizer(explode=True)
dl('calculation')
# ['calculation', 'calculations', 'calculate', 'calculates', 'calculated', 'would calculate', 'would have calculated' 'has calculated'... 'calculators', 'calculator']