Packages

o

com.johnsnowlabs.ml.util

LoadExternalModel

object LoadExternalModel

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoadExternalModel
  2. AnyRef
  3. 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def detectEngine(modelPath: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): String
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isOnnxModel(modelPath: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): Boolean
  14. def isTensorFlowModel(modelPath: String): Boolean
  15. def loadJsonStringAsset(assetPath: String, assetName: String): String

    assetPath

    path to root of assets directory

    assetName

    asset's name

    returns

    JSON as String to be parsed later

  16. def loadSentencePieceAsset(assetPath: String, assetName: String): SentencePieceWrapper

    assetPath

    path to root of assets directory

    assetName

    asset's name

    returns

    SentencePieceWrapper

  17. def loadTextAsset(assetPath: String, assetName: String): Array[String]
  18. def modelSanityCheck(path: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): (String, String)

    Retrieves a local path for a model folder and detects DL engine

    Retrieves a local path for a model folder and detects DL engine

    If the model is at a remote location it will be downloaded and a local path provided. Otherwise an URL to the local path of the folder will be returned. This method also tests the sanity of the DL model while detecting the DL engine

    path

    Local or Remote path of the model folder

    returns

    URL to the local path of the folder

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val notSupportedEngineError: String
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped