Packages

class BeamSearchScorer extends BeamScorer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BeamSearchScorer
  2. BeamScorer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BeamSearchScorer(beamSize: Int, batchSize: Int, lengthPenalty: Float = 1.0f, doEarlyStopping: Boolean = false, numBeamHypothesisToKeep: Int = 1, maxLength: Int)

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. var batchSize: Int
  6. var beamSize: Int
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. var doEarlyStopping: Boolean
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(inputIds: Seq[Array[Int]], finalBeamScores: Array[Float], finalBeamTokens: Array[Int], finalBeamIndices: Array[Int], maxLength: Int, padTokenId: Int, eosTokenId: Int, beamIndices: Seq[Array[Int]]): (Array[Array[Int]], Array[Float], Array[Array[Int]])
    Definition Classes
    BeamSearchScorerBeamScorer
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def getBeamHypothesesSeq: Seq[BeamHypotheses]
    Definition Classes
    BeamSearchScorerBeamScorer
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getDone: Array[Boolean]
    Definition Classes
    BeamSearchScorerBeamScorer
  16. def getNumBeams: Int
    Definition Classes
    BeamSearchScorerBeamScorer
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def isDone: Boolean
    Definition Classes
    BeamSearchScorerBeamScorer
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. var lengthPenalty: Float
  21. var maxLength: Int
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. var numBeamHypothesisToKeep: Int
  26. val numBeams: Int
  27. def process(inputIds: Seq[Array[Int]], nextScores: Seq[Array[Float]], nextTokens: Seq[Array[Int]], nextIndices: Seq[Array[Int]], padTokenId: Int, eosTokenId: Int, beamIndices: Seq[Array[Int]], currentLength: Int, stopTokenIds: Array[Int]): (Array[Array[Float]], Array[Array[Int]], Array[Array[Int]])
    Definition Classes
    BeamSearchScorerBeamScorer
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  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( ... ) @native()

Inherited from BeamScorer

Inherited from AnyRef

Inherited from Any

Ungrouped