User:Manetta/scripts/videogrep-wordnet-2001
Videogrep - Hypernyms search
videogrep command
import os
x = "python ./videogrep/videogrep.py --input inputfilename.mp4 --search 'HYPERNYM' --search-type hyper --output export/outputfilename.mp4"
print x
os.system(x)
WordNet list from Pattern
from pattern.en import wordnet
i=1
for i in range (1,10):
s = wordnet.synsets('HYPERNYM')[i]
print 'Definition:', s.gloss, '\n'
print ' Synonyms:', s.synonyms, '\n'
print ' Hypernyms:', s.hypernyms(), '\n'
print ' Hyponyms:', s.hyponyms(), '\n'
print ' Holonyms:', s.holonyms(), '\n'
print ' Meronyms:', s.meronyms(), '\n'
i=i+1
hypernym : emotion
Definition: any strong feeling
Synonyms: [u'emotion']
Hypernyms: [Synset(u'feeling')]
Hyponyms: [Synset(u'conditioned emotional response'), Synset(u'anger'), Synset(u'fear'), Synset(u'fear'),
Synset(u'anxiety'), Synset(u'joy'), Synset(u'love'), Synset(u'hate'), Synset(u'emotional state')]
Holonyms: []
Meronyms: []
hypernym: machine
hypernym: communication