Packages

o

com.johnsnowlabs.nlp.pretrained

InternalResourceDownloader

object InternalResourceDownloader

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InternalResourceDownloader
  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 downloadModel[TModel <: PipelineStage](reader: DefaultParamsReadable[TModel], name: String, language: Option[String] = None, folder: String = "clinical/models"): TModel
  7. def downloadModelDirectly(s3FilePath: String, folder: String, unzip: Boolean = true, cacheFolderPath: String = ""): Unit

    Downloads a model from the S3 bucket to the cache folder.

    Downloads a model from the S3 bucket to the cache folder.

    s3FilePath

    the name of the key in the S3 bucket or s3 URI

    folder

    the folder of the model in the s3

    unzip

    used to unzip the model, by default true

    cacheFolderPath

    the path of the file to download the model

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val internalResourceDownloader: ResourceDownloader.type
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val libVersion: Version
  16. def listprivateModels(): List[String]

    List all pretrained models in privaete name_lang

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val privateLocation: String
  21. def privateResourceString(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(Build.version), resourceType: ResourceType.ResourceType): String
  22. val privateS3ResourceDownloader: InternalS3ResourceDownloader
  23. def returnPrivateModels(annotator: String): List[List[String]]
  24. def returnPrivateModels(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(JSLBuild.version)): List[List[String]]

    Return all pretrained models for a particular annotator model, that are compatible with a version of Spark NLP.

    Return all pretrained models for a particular annotator model, that are compatible with a version of Spark NLP. If any of the optional arguments are not set, the filter is not considered.

    annotator

    Name of the model class, for example "NerDLModel"

    lang

    Language of the pretrained models to display, for example "en"

    version

    Version of Spark NLP that the model should be compatible with, for example "3.2.3"

  25. def returnPrivateResourceList(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(Build.version), resourceType: ResourceType.ResourceType): List[List[String]]
  26. def showAvailableAnnotators(): String
  27. def showPrivateModels(annotator: String): Unit

    Prints all pretrained models for a particular annotator model, that are compatible with this version of Spark NLP.

    Prints all pretrained models for a particular annotator model, that are compatible with this version of Spark NLP.

    annotator

    Name of the annotator class

  28. def showPrivateModels(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(JSLBuild.version)): Unit

    Prints all pretrained models for a particular annotator model, that are compatible with a version of Spark NLP.

    Prints all pretrained models for a particular annotator model, that are compatible with a version of Spark NLP. If any of the optional arguments are not set, the filter is not considered.

    annotator

    Name of the model class, for example "NerDLModel"

    lang

    Language of the pretrained models to display, for example "en"

    version

    Version of Spark NLP that the model should be compatible with, for example "3.2.3"

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped