Class/Object

com.intel.analytics.zoo.feature.text

TextFeature

Related Docs: object TextFeature | package text

Permalink

class TextFeature extends Serializable

Each TextFeature keeps information of a single text record. It can include various status (if any) of a text, e.g. original text content, uri, category label, tokens, index representation of tokens, BigDL Sample representation, prediction result and so on. It uses a HashMap to store all these data. Each key is a string that can be used to identify the corresponding value.

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

Instance Constructors

  1. new TextFeature()

    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 apply[T](key: String): T

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contains(key: String): Boolean

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getIndices: Array[Float]

    Permalink

    Get the token indices of the TextFeature.

    Get the token indices of the TextFeature. If text hasn't been segmented or transformed from word to index, null will be returned.

  13. def getLabel: Int

    Permalink

    Get the label of the TextFeature.

    Get the label of the TextFeature. If no label is stored, -1 will be returned.

  14. def getPredict[T](implicit arg0: ClassTag[T]): Tensor[T]

    Permalink

    Get the prediction probability distribution of the TextFeature.

    Get the prediction probability distribution of the TextFeature. If the TextFeature hasn't been predicted by a model, null will be returned.

  15. def getSample: Sample[Float]

    Permalink

    Get the Sample representation of the TextFeature.

    Get the Sample representation of the TextFeature. If the TextFeature hasn't been transformed to Sample, null will be returned.

  16. def getText: String

    Permalink

    Get the text content of the TextFeature.

    Get the text content of the TextFeature. Return null if it doesn't exist.

  17. def getTokens: Array[String]

    Permalink

    Get the tokens of the TextFeature.

    Get the tokens of the TextFeature. If text hasn't been segmented, null will be returned.

  18. def getURI: String

    Permalink

    Get the identifier of the TextFeature.

    Get the identifier of the TextFeature. Return null if it doesn't exist.

  19. def hasLabel: Boolean

    Permalink

    Whether the TextFeature contains label.

  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. def keys(): Set[String]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def setLabel(label: Int): TextFeature.this.type

    Permalink

    Set the label for the TextFeature.

    Set the label for the TextFeature.

    label

    Integer.

    returns

    The TextFeature with label.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def update(key: String, value: Any): Unit

    Permalink
  30. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped