Class/Object

org.clulab.embeddings

ExplicitWordEmbeddingMap

Related Docs: object ExplicitWordEmbeddingMap | package embeddings

Permalink

class ExplicitWordEmbeddingMap extends WordEmbeddingMap

Implements an word embedding map, where each embedding is stored as a distinct array

Linear Supertypes
WordEmbeddingMap, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExplicitWordEmbeddingMap
  2. WordEmbeddingMap
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExplicitWordEmbeddingMap(buildType: BuildType)

    Permalink

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 add(dest: Array[Float], src: IndexedSeq[Float]): Unit

    Permalink
    Attributes
    protected
  5. def addWeighted(dest: Array[Float], src: IndexedSeq[Float], weight: Float): Unit

    Permalink
    Attributes
    protected
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def avgSimilarity(texts1: Iterable[String], texts2: Iterable[String]): Float

    Permalink
  8. val buildType: BuildType

    Permalink
    Attributes
    protected
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compare(left: Option[IndexedSeq[Float]], right: Option[IndexedSeq[Float]]): Boolean

    Permalink
  11. def compare(left: ImplMapType, right: ImplMapType): Boolean

    Permalink
  12. def compare(lefts: IndexedSeq[Float], rights: IndexedSeq[Float]): Boolean

    Permalink
  13. val dim: Int

    Permalink

    The dimension of an embedding vector

    The dimension of an embedding vector

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(other: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get(word: String): Option[IndexedSeq[Float]]

    Permalink

    Retrieves the embedding for this word, if it exists in the map

    Retrieves the embedding for this word, if it exists in the map

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getOrElseUnknown(word: String): IndexedSeq[Float]

    Permalink

    Retrieves the embedding for this word; if it doesn't exist in the map uses the Unknown token instead

    Retrieves the embedding for this word; if it doesn't exist in the map uses the Unknown token instead

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  20. def hashCode(): Int

    Permalink
    Definition Classes
    ExplicitWordEmbeddingMap → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isOutOfVocabulary(word: String): Boolean

    Permalink
  23. def keys: Set[String]

    Permalink

    Returns all keys presented in the map, excluding the key for the unknown token

    Returns all keys presented in the map, excluding the key for the unknown token

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  24. def makeCompositeVector(text: Iterable[String]): Array[Float]

    Permalink
  25. def makeCompositeVectorWeighted(text: Iterable[String], weights: Iterable[Float]): Array[Float]

    Permalink
  26. val map: ImplMapType

    Permalink
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def save(filename: String): Unit

    Permalink

    Save this object in binary format.

    Save this object in binary format.

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  31. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. val unkEmbeddingOpt: Option[IndexedSeq[Float]]

    Permalink
  34. def unknownEmbedding: IndexedSeq[Float]

    Permalink

    The embedding corresponding to the unknown token

    The embedding corresponding to the unknown token

    Definition Classes
    ExplicitWordEmbeddingMapWordEmbeddingMap
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WordEmbeddingMap

Inherited from AnyRef

Inherited from Any

Ungrouped