:note

WordNetを使ってみる

メソッド名決めるのによさそう。

About WordNet - WordNet - About WordNet

コマンドラインをさがす。

% brew info wordnet
wordnet: stable 3.1 (bottled)
Lexical database for the English language
https://wordnet.princeton.edu/
/usr/local/Cellar/wordnet/3.1 (180 files, 53.9M) *
  Poured from bottle on 2016-09-13 at 13:02:36
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wordnet.rb

% wn

usage: wn word [-hgla] [-n#] -searchtype [-searchtype...]
       wn [-l]

	-h		Display help text before search output
	-g		Display gloss
	-l		Display license and copyright notice
	-a		Display lexicographer file information
	-o		Display synset offset
	-s		Display sense numbers in synsets
	-n#		Search only sense number #

searchtype is at least one of the following:
	-ants{n|v|a|r}		Antonyms
	-hype{n|v}		Hypernyms
	-hypo{n|v}, -tree{n|v}	Hyponyms & Hyponym Tree
	-entav			Verb Entailment
	-syns{n|v|a|r}		Synonyms (ordered by estimated frequency)
	-smemn			Member of Holonyms
	-ssubn			Substance of Holonyms
	-sprtn			Part of Holonyms
	-membn			Has Member Meronyms
	-subsn			Has Substance Meronyms
	-partn			Has Part Meronyms
	-meron			All Meronyms
	-holon			All Holonyms
	-causv			Cause to
	-pert{a|r}		Pertainyms
	-attr{n|a}		Attributes
	-deri{n|v}		Derived Forms
	-domn{n|v|a|r}		Domain
	-domt{n|v|a|r}		Domain Terms
	-faml{n|v|a|r}		Familiarity & Polysemy Count
	-framv			Verb Frames
	-coor{n|v}		Coordinate Terms (sisters)
	-simsv			Synonyms (grouped by similarity of meaning)
	-hmern			Hierarchical Meronyms
	-hholn			Hierarchical Holonyms
	-grep{n|v|a|r}		List of Compound Words
	-over			Overview of Senses

同義語を探す

% wn gather -synsn

Synonyms/Hypernyms (Ordered by Estimated Frequency) of noun gather

2 senses of gather

Sense 1
gather, gathering
       => sewing, stitchery

Sense 2
gather, gathering
       => collection, collecting, assembling, aggregation
 
comments powered by Disqus
back to top