class NerDatasetEncoder extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NerDatasetEncoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new NerDatasetEncoder(params: DatasetEncoderParams)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val char2Id: Map[Char, Int]
- val chars: Array[Char]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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
- 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
- def encodeInputData(sentences: Array[WordpieceEmbeddingsSentence]): NerBatch
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getOrElse[T](source: Array[T], i: Int, value: => T): T
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val params: DatasetEncoderParams
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tag2Id: Map[String, Int]
- val tags: Array[String]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)