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. def generateRandomString(n: Int): String

    Generates a random alphanumeric string of a given length.

    Generates a random alphanumeric string of a given length.

    n

    the length of the generated string

    returns

    a random alphanumeric string of length n

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isOnnxModel(modelPath: String, isEncoderDecoder: Boolean = false, withPast: Boolean = false, isDecoder: Boolean = false): Boolean
  15. def isOpenvinoModel(modelPath: String, isEncoderDecoder: Boolean): Boolean
  16. def isTensorFlowModel(modelPath: String): Boolean
  17. 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

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

    assetPath

    path to root of assets directory

    assetName

    asset's name

    returns

    SentencePieceWrapper

  19. def loadTextAsset(assetPath: String, assetName: String): Array[String]
  20. 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

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

Inherited from AnyRef

Inherited from Any

Ungrouped