kr.ac.kaist.ir.deep.wordvec

StringToStringType

class StringToStringType extends StringType[String]

Input Operation : String as Input & Expected Otput. (Spark ONLY)

:: WORKING ::

Example:
  1. var make = new StringToStringType(model = wordModel, error = CrossEntropyErr)
        var out = make onewayTrip (net, in)
Note

This is for WordEmbedding Training. Be warned that the onewayTrip function generates ScalarMatrix rather than String.

,

This is not implemented yet.

Linear Supertypes
StringType[String], ManipulationType[String, String], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringToStringType
  2. StringType
  3. ManipulationType
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringToStringType(model: Broadcast[WordModel], error: Objective)

    model

    Broadcast of WordEmbedding model that contains all meaningful words.

    error

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

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. var accWords: Accumulator[HashMap[String, ScalarMatrix]]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val corrupt: Corruption

    Corruption function

    Corruption function

    Definition Classes
    StringTypeManipulationType
  8. def corrupted(x: String): String

    Corrupt input : No corruption for string.

    Corrupt input : No corruption for string.

    x

    input to be corrupted

    returns

    corrupted input

    Definition Classes
    StringTypeManipulationType
  9. def different(x: String, y: String): Boolean

    Check whether given two are same or not.

    Check whether given two are same or not.

    x

    Out-type object

    y

    Out-type object

    returns

    True if they are different.

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

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

    Definition Classes
    AnyRef → Any
  12. val error: Objective

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

    Definition Classes
    StringToStringTypeManipulationType
  13. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  17. def lossOf(net: Network)(pair: (String, String)): Scalar

    Apply given input and compute the error

    Apply given input and compute the error

    net

    A network that gets input

    pair

    (Input, Real output) for error computation.

    returns

    error of this network

    Definition Classes
    StringToStringTypeManipulationType
  18. val model: Broadcast[WordModel]

    Broadcast of WordEmbedding model that contains all meaningful words.

    Broadcast of WordEmbedding model that contains all meaningful words.

    Attributes
    protected
    Definition Classes
    StringToStringTypeStringType
  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 onewayTrip(net: Network, x: String): ScalarMatrix

    Apply given single input as one-way forward trip.

    Apply given single input as one-way forward trip.

    net

    A network that gets input

    x

    input to be computed

    returns

    output of the network.

    Definition Classes
    StringTypeManipulationType
  23. def roundTrip(net: Network, in: String, real: String): Unit

    Apply & Back-prop given single input

    Apply & Back-prop given single input

    net

    A network that gets input

    in

    Input for error computation.

    real

    Real output for error computation.

    Definition Classes
    StringToStringTypeManipulationType
  24. def setAccumulator(acc: Accumulator[HashMap[String, ScalarMatrix]]): Unit

    Set Accumulator of Word Embedding.

    Set Accumulator of Word Embedding.

    acc

    New Accumulator

  25. def stringOf(net: Network, pair: (String, String)): String

    Make validation output

    Make validation output

    net

    A network that gets input

    pair

    (Input, Real output) pair for computation

    returns

    input as string

    Definition Classes
    StringToStringTypeManipulationType
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StringType[String]

Inherited from ManipulationType[String, String]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped