Packages

object DocumentTranslator extends ReadablePretrainedDocumentTranslator with ReadDocumentTranslatorModel with Serializable

This is the companion object of DocumentTranslator. Please refer to that class for the documentation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DocumentTranslator
  2. Serializable
  3. Serializable
  4. ReadDocumentTranslatorModel
  5. ReadablePretrainedDocumentTranslator
  6. ParamsAndFeaturesReadable
  7. DefaultParamsReadable
  8. MLReadable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def addReader(reader: (DocumentTranslator, String, SparkSession) ⇒ Unit): Unit
    Definition Classes
    ParamsAndFeaturesReadable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. val defaultLang: String
  8. val defaultModelName: String
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromAutoGGUF(autoGGUF: AutoGGUFModel): DocumentTranslator

    Wraps a downloaded AutoGGUFModel's GGUF model in a DocumentTranslator.

    Wraps a downloaded AutoGGUFModel's GGUF model in a DocumentTranslator. Public so the Python API can reuse an already-loaded AutoGGUFModel and wrap it on the JVM side.

    Definition Classes
    ReadablePretrainedDocumentTranslator
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def load(path: String): DocumentTranslator
    Definition Classes
    MLReadable
    Annotations
    @Since( "1.6.0" )
  17. def loadSavedModel(modelPath: String, spark: SparkSession): DocumentTranslator
    Definition Classes
    ReadDocumentTranslatorModel
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def onRead(instance: DocumentTranslator, path: String, session: SparkSession): Unit
    Attributes
    protected
    Definition Classes
    ParamsAndFeaturesReadable
  22. def pretrained(name: String, lang: String, remoteLoc: String): DocumentTranslator
  23. def pretrained(name: String, lang: String): DocumentTranslator
  24. def pretrained(name: String): DocumentTranslator
  25. def pretrained(): DocumentTranslator
  26. def read: MLReader[DocumentTranslator]
    Definition Classes
    ParamsAndFeaturesReadable → DefaultParamsReadable → MLReadable
  27. val readers: ArrayBuffer[(DocumentTranslator, String, SparkSession) ⇒ Unit]
    Attributes
    protected
    Definition Classes
    ParamsAndFeaturesReadable
  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 Serializable

Inherited from Serializable

Inherited from DefaultParamsReadable[DocumentTranslator]

Inherited from MLReadable[DocumentTranslator]

Inherited from AnyRef

Inherited from Any

Ungrouped