Object

net.sansa_stack.ml.spark.nlp.wordnet

WordNetSimilarity

Related Doc: package wordnet

Permalink

object WordNetSimilarity extends WordNet

Linear Supertypes
WordNet, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WordNetSimilarity
  2. WordNet
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allHypernyms(synset: Synset): List[List[Synset]]

    Permalink

    Returns list of all hypernyms of a synset

    Returns list of all hypernyms of a synset

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  5. def antonyms(word: Word): List[Word]

    Permalink

    Returns the antonym of a word

    Returns the antonym of a word

    word

    : Word

    returns

    : List[Word]

    Definition Classes
    WordNet
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def depth(synset: Synset): Int

    Permalink

    Returns the depth of a synset Since there can be several paths to root, the minimum lenth is considered

    Returns the depth of a synset Since there can be several paths to root, the minimum lenth is considered

    synset

    : Synset

    returns

    : Integer

    Definition Classes
    WordNet
  9. def entailments(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getDict: Dictionary

    Permalink

    Returns an instance of the WordNet dictionary used in the package

    Returns an instance of the WordNet dictionary used in the package

    Definition Classes
    WordNet
  15. def getSynset(lemma: String, pos: POS, sid: Int): List[Synset]

    Permalink

    Returns a Synset given a String Returns empty list if the lemma did not exist in the WordNet

    Returns a Synset given a String Returns empty list if the lemma did not exist in the WordNet

    lemma

    : String

    pos

    : POS

    sid

    : Integer

    returns

    : List[Synset]

    Definition Classes
    WordNet
  16. def getSynsets(lemma: String, pos: POS): List[Synset]

    Permalink

    Returns a Synset given a String, pos and synset id Returns empty list if the lemma did not exist in the WordNet

    Returns a Synset given a String, pos and synset id Returns empty list if the lemma did not exist in the WordNet

    lemma

    : String

    pos

    : POS

    returns

    List[Synset]

    Definition Classes
    WordNet
  17. def getSynsets(lemma: String): List[Synset]

    Permalink

    Returns a Synset belonging to a lemma String

    Returns a Synset belonging to a lemma String

    lemma

    : String

    returns

    : List[Synset]

    Definition Classes
    WordNet
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hypernyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    Definition Classes
    WordNet
  20. def hyponyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    Definition Classes
    WordNet
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def lemmaNames(synset: Synset): List[String]

    Permalink

    Gets lemma name for a synset

    Gets lemma name for a synset

    synset

    :Synset

    returns

    : List[String]

    Definition Classes
    WordNet
  23. def lowestCommonHypernym(synset1: Synset, synset2: Synset): List[Synset]

    Permalink

    Get lowestCommonHypernym of two Synsets

    Get lowestCommonHypernym of two Synsets

    synset1

    : Synset

    synset2

    : Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  24. def memberHolonyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def partHolonyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  29. def partMeronyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  30. def relatedLemmas(word: Word, ptr: PointerType): List[Word]

    Permalink

    Returns related lemmas of a word given the word and the type of relation

    Returns related lemmas of a word given the word and the type of relation

    word

    : Word

    ptr

    : PointerType

    returns

    : List[Word]

    Definition Classes
    WordNet
  31. def relatedSynsets(synset: Synset, ptr: PointerType): List[Synset]

    Permalink

    Gets related synsets per function given a pointer type from pointer class

    Gets related synsets per function given a pointer type from pointer class

    synset

    :Synset

    ptr

    : PointerType

    returns

    : List[Synset]

    Definition Classes
    WordNet
  32. def rootHypernyms(synset: Synset): List[Synset]

    Permalink

    Returns the list of root hypernyms of a Synset

    Returns the list of root hypernyms of a Synset

    synset

    : Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  33. def shortestHypernymPathLength(synset1: Synset, hypernym: Synset): Int

    Permalink

    Get shortestPath Length to a Hypernim

    Get shortestPath Length to a Hypernim

    synset1

    : Synset

    hypernym

    : Synset

    returns

    : Integer

    Definition Classes
    WordNet
  34. def shortestPathSim(synset1: Synset, synset2: Synset): Double

    Permalink

    Returns the distance similarity of two synsets using the shortest path linking the two synsets (if one exists)

    Returns the distance similarity of two synsets using the shortest path linking the two synsets (if one exists)

    synset1

    : Synset

    synset2

    : Synset

    returns

    : Double

  35. def substanceHolonyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  36. def substanceMeronyms(synset: Synset): List[Synset]

    Permalink

    Input is a synset returns a list of synsets

    Input is a synset returns a list of synsets

    synset

    :Synset

    returns

    : List[Synset]

    Definition Classes
    WordNet
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def wupSimilarity(synset1: Synset, synset2: Synset): Double

    Permalink

    Wu & Palmer (1994) method of measuring semantic relatedness based on node counting.

    Wu & Palmer (1994) method of measuring semantic relatedness based on node counting. given two synsets, synset1 and synset2 returns the similarity score

    synset1

    :Synset

    synset2

    :Synset

    returns

    score :Double

Inherited from WordNet

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped