Packages

t

com.johnsnowlabs.nlp.annotators.qa

GPTGenerationParams

trait GPTGenerationParams extends Params

Linear Supertypes
Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. GPTGenerationParams
  2. Params
  3. Serializable
  4. Serializable
  5. Identifiable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(extra: ParamMap): Params
    Definition Classes
    Params
  2. abstract val uid: String
    Definition Classes
    Identifiable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def clear(param: Param[_]): GPTGenerationParams.this.type
    Definition Classes
    Params
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  9. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  10. val doSample: BooleanParam

    Whether or not to use sampling, use greedy decoding otherwise (Default: false)

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  14. def explainParams(): String
    Definition Classes
    Params
  15. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  16. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  21. def getDoSample: Boolean

  22. def getIgnoreTokenIds: Array[Int]

  23. def getMaxContextLength: Int

  24. def getMaxNewTokens: Int

  25. def getNoRepeatNgramSize: Int

  26. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  27. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  28. def getRandomSeed: Option[Int]

  29. def getTopK: Int

  30. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  31. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. val ignoreTokenIds: IntArrayParam

    A list of token ids which are ignored in the decoder's output (Default: Array())

  34. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  37. val maxContextLength: IntParam

    Maximum length of context text.

    Maximum length of context text. (Default: 1024)

  38. val maxNewTokens: IntParam

    Maximum number of new tokens to be generated (Default: 30)

  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. val noRepeatNgramSize: IntParam

    If set to int > 0, all ngrams of that size can only occur once (Default: 0)

  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  44. val randomSeed: Option[Int]

    Optional Random seed for the model.

    Optional Random seed for the model. Needs to be of type Long.

  45. final def set(paramPair: ParamPair[_]): GPTGenerationParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  46. final def set(param: String, value: Any): GPTGenerationParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  47. final def set[T](param: Param[T], value: T): GPTGenerationParams.this.type
    Definition Classes
    Params
  48. final def setDefault(paramPairs: ParamPair[_]*): GPTGenerationParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  49. final def setDefault[T](param: Param[T], value: T): GPTGenerationParams.this.type
    Attributes
    protected[org.apache.spark.ml]
    Definition Classes
    Params
  50. def setDoSample(value: Boolean): GPTGenerationParams.this.type

  51. def setIgnoreTokenIds(tokenIds: Array[Int]): GPTGenerationParams.this.type

  52. def setMaxContextLength(value: Int): GPTGenerationParams.this.type

  53. def setMaxNewTokens(value: Int): GPTGenerationParams.this.type

  54. def setNoRepeatNgramSize(value: Int): GPTGenerationParams.this.type

  55. def setRandomSeed(value: Int): GPTGenerationParams.this.type

  56. def setTopK(value: Int): GPTGenerationParams.this.type

  57. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  58. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  59. val topK: IntParam

    The number of highest probability vocabulary tokens to consider

  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped