kr.ac.kaist.ir.deep.wordvec

WordModel

class WordModel extends Serializable with (String) ⇒ ScalarMatrix

Word2Vec model class.

Linear Supertypes
(String) ⇒ ScalarMatrix, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WordModel
  2. Function1
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WordModel(map: HashMap[String, Array[Scalar]])

    map

    Mapping between String to Array[Coord]

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (ScalarMatrix) ⇒ A): (String) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(word: String): ScalarMatrix

    Get Matrix(Vector) of given word

    Get Matrix(Vector) of given word

    word

    Word string for search

    returns

    Column Vector of given word

    Definition Classes
    WordModel → Function1
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compose[A](g: (A) ⇒ String): (A) ⇒ ScalarMatrix

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def contains(word: String): Boolean

    Check existance of given word

    Check existance of given word

    word

    Word string for search

    returns

    True if it is in the list

  10. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def loadFilter(file: File): WordModel.this.type

    Load Word Filter

    Load Word Filter

    file

    File where Serialized Filter saved

  17. def loadFilter(path: Path): WordModel.this.type

    Load Word Filter

    Load Word Filter

    path

    Path where Serialized Filter saved

  18. val map: HashMap[String, Array[Scalar]]

    Mapping between String to Array[Coord]

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def saveAs(file: File): Unit

    Write model into given file.

    Write model into given file.

    file

    File where to store

  23. def saveAs(path: Path): Unit

    Write model into given path.

    Write model into given path.

    path

    Path where to store.

  24. def setFilter(newFilter: WordFilter): Unit

    Set Word Filter

    Set Word Filter

    newFilter

    Filter to be set

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  27. def tokenize(str: String): WrappedArray[String]

    Tokenize given string using word filter

    Tokenize given string using word filter

    str

    String to tokenize

    returns

    Tokenized string (WrappedArray)

  28. def tokenizeAndApply(str: String): ScalarMatrix

    Tokenize given string and take average vector of them

    Tokenize given string and take average vector of them

    str

    String to compute

    returns

    Average word embedding of given string.

  29. lazy val vectorSize: Int

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from (String) ⇒ ScalarMatrix

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped