User:Manetta/scripts/videogrep-wordnet-2001

From XPUB & Lens-Based wiki
< User:Manetta
Revision as of 10:14, 24 March 2015 by Manetta (talk | contribs) (Created page with "= Videogrep - Hypernyms search = == videogrep command == <source lang="python"> import os x = "python ./videogrep/videogrep.py --input inputfilename.mp4 --search 'HYPERNYM'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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