ICBasedSimilarity class

Constructors

ICBasedSimilarity(Germanet germanet, WordCategory category, String path, {String separator = "\t"})
The IC-based measures are computed based on relative frequencies of words in a large corpus. Synset frequencies are computed by adding up the frequencies of all words that belong to a Synset. These measures can not be computed between synsets with different word categories

Properties

category WordCategory
getter/setter pair
germanet Germanet
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
jcnmaxdist ↔ dynamic
getter/setter pair
path String
getter/setter pair
root_freq int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator String
getter/setter pair
synset2cumfreq Map
getter/setter pair
synset2simplefreq Map
getter/setter pair

Methods

jiang_and_conrath(Synset synset1, Synset synset2, {bool normalize = false, double normalized_max = 1.0}) double
The Jiang and Conraths measure includes knowledge about the individual information contents of each synset. The smaller the difference of the information content of the two synsets, the more related they are.
lin(Synset synset1, Synset synset2, {bool normalize = false, double normalized_max = 1.0}) double
The lin measure takes the individual information contents of each synset and the information content of the LCS into account. The LCS with the highest information content is used for the computation.
normalize(double raw_value, double normalized_max, SemRelMeasure semrel_measure) double
Normalizes a raw value of semantic relatedness to a value between a lower bound and the given upper bound.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resnik(Synset synset1, Synset synset2, {bool normalize = false, double normalized_max = 1.0}) double
Two concepts are more related the more information they share. The shared information of two concepts can be quantified by the information content of two concepts' lowest common subsumer. When several LCS are available the highest IC is returned.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited