from neon_utterance_KeyBERT_plugin import KeyBERTExtractor
from neon_utterance_wn_entailment_plugin import WordNetEntailments
from neon_utterance_KeyBERT_plugin import KeyBERTExtractor
kbert = KeyBERTExtractor() # or RAKE or YAKE or all of them!
tars = WordNetEntailments()
utts = ["The man was snoring very loudly"]
_, context = kbert.transform(utts)
# {'keybert_keywords': [('snoring', 0.829), ('man snoring loudly', 0.8174), ('man snoring', 0.668)]}
_, context = tars.transform(utts, context)
print(context)
# {'entailments': ['exhale', 'inhale', 'sleep']}
-
Notifications
You must be signed in to change notification settings - Fork 2
NeonGeckoCom/neon-utterance-plugin-wn_entailment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Contributing
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published