c

com.johnsnowlabs.ml.tensorflow

NerDatasetEncoder

class NerDatasetEncoder extends Serializable

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

Instance Constructors

  1. new NerDatasetEncoder(params: DatasetEncoderParams)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val char2Id: Map[Char, Int]
  6. val chars: Array[Char]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def convertBatchTags(predictedTags: Array[String], allTags: Array[String], sentenceLength: Array[Int], prob: Option[Seq[Array[Float]]], includeAllConfidenceScores: Boolean): Array[Array[(String, Option[Array[Map[String, String]]])]]

    Converts Tensorflow tags output to 2-dimensional Array with shape: (Batch, Sentence Length).

    Converts Tensorflow tags output to 2-dimensional Array with shape: (Batch, Sentence Length).

    predictedTags

    2-dimensional tensor in plain array

    allTags

    All original tags

    sentenceLength

    Every sentence length (number of words).

    returns

    List of tags for each sentence

  9. def decodeOutputData(tagIds: Array[Int]): Array[String]

    Converts Tag Identifiers to Source Names

    Converts Tag Identifiers to Source Names

    tagIds

    Tag Ids encoded for Tensorflow Model.

    returns

    Tag names

  10. def encodeInputData(sentences: Array[WordpieceEmbeddingsSentence]): NerBatch
  11. def encodeTags(tags: Array[Array[String]]): Array[Array[Int]]

    Converts Tag names to Identifiers

    Converts Tag names to Identifiers

    tags

    batches of labels/classes for each sentence/document

    returns

    batches of tag ids for each sentence/document

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getOrElse[T](source: Array[T], i: Int, value: ⇒ T): T
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val params: DatasetEncoderParams
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. val tag2Id: Map[String, Int]
  25. val tags: Array[String]
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped