Skip to content

Instantly share code, notes, and snippets.

@bogsio
Last active December 26, 2015 19:49
Show Gist options
  • Save bogsio/7203731 to your computer and use it in GitHub Desktop.
Save bogsio/7203731 to your computer and use it in GitHub Desktop.
print convert("death", WN_NOUN, WN_VERB)
print convert("story", WN_NOUN, WN_VERB)
print convert("boring", WN_ADJECTIVE, WN_NOUN)
print convert("trouble", WN_NOUN, WN_ADJECTIVE)
print convert("solve", WN_VERB, WN_ADJECTIVE_SATELLITE)
print convert("think", WN_VERB, WN_ADJECTIVE)
[('die', 0.75), ('end', 0.2), ('decease', 0.05)]
[('report', 0.2222222222222222), ('tell', 0.2222222222222222), ('narrate', 0.2222222222222222),...
[('tedium', 0.3333333333333333), ('dullness', 0.16666666666666666),...
[('troublous', 0.6666666666666666), ('problematical', 0.3333333333333333)]
[('solvent', 0.5), ('workable', 0.5)]
[('cogitative', 0.6666666666666666), ('recollective', 0.3333333333333333)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment