Object/Trait

com.johnsnowlabs.nlp.pretrained

ResourceDownloader

Related Docs: trait ResourceDownloader | package pretrained

Permalink

object ResourceDownloader

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceDownloader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cacheFolder: String

    Permalink
  6. def clearCache(request: ResourceRequest): Unit

    Permalink
  7. def clearCache(name: String, language: Option[String] = None, folder: String = publicLoc): Unit

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. var communityDownloader: ResourceDownloader

    Permalink
  10. var defaultDownloader: ResourceDownloader

    Permalink
  11. def downloadModel[TModel <: PipelineStage](reader: DefaultParamsReadable[TModel], request: ResourceRequest): TModel

    Permalink
  12. def downloadModel[TModel <: PipelineStage](reader: DefaultParamsReadable[TModel], name: String, language: Option[String] = None, folder: String = publicLoc): TModel

    Permalink
  13. def downloadModelDirectly(model: String, folder: String = publicLoc): Unit

    Permalink

    Downloads a resource from the default S3 bucket in the cache pretrained folder.

    Downloads a resource from the default S3 bucket in the cache pretrained folder.

    model

    the name of the key in the S3 bucket

    folder

    the language of the model

    returns

    the path to the downloaded file

  14. def downloadPipeline(request: ResourceRequest): PipelineModel

    Permalink
  15. def downloadPipeline(name: String, language: Option[String] = None, folder: String = publicLoc): PipelineModel

    Permalink
  16. def downloadResource(request: ResourceRequest): String

    Permalink

    Loads resource to path

    Loads resource to path

    request

    Request for resource

    returns

    path of downloaded resource

  17. def downloadResource(name: String, language: Option[String] = None, folder: String = publicLoc): String

    Permalink

    Loads resource to path

    Loads resource to path

    name

    Name of Resource

    language

    Desired language of Resource

    folder

    Subfolder in s3 where to search model (e.g. medicine)

    returns

    path of downloaded resource

  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. val fileSystem: FileSystem

    Permalink
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getDownloadSize(resourceRequest: ResourceRequest): String

    Permalink
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. lazy val libVersion: Version

    Permalink
  27. def listAvailableAnnotators(folder: String = publicLoc): List[String]

    Permalink
  28. def listPretrainedResources(folder: String, resourceType: ResourceType, lang: String, version: Version): List[String]

    Permalink
  29. def listPretrainedResources(folder: String, resourceType: ResourceType, version: Version): List[String]

    Permalink
  30. def listPretrainedResources(folder: String, resourceType: ResourceType, lang: String): List[String]

    Permalink
  31. def listPretrainedResources(folder: String, resourceType: ResourceType, annotator: Option[String] = None, lang: Option[String] = None, version: Option[Version] = None): List[String]

    Permalink

    Lists pretrained resource from metadata.json, depending on the set filters.

    Lists pretrained resource from metadata.json, depending on the set filters. The folder in the S3 location and the resourceType is necessary. The other filters are optional and will be ignored if not set.

    folder

    Folder in the S3 location

    resourceType

    Type of the Resource. Can Either ResourceType.MODEL, ResourceType.PIPELINE or ResourceType.NOT_DEFINED

    annotator

    Name of the model class

    lang

    Language of the model

    version

    Version that the model should be compatible with

    returns

    A list of the available resources

  32. def listPublicModels(): List[String]

    Permalink

    List all pretrained models in public name_lang

  33. def listPublicPipelines(): List[String]

    Permalink

    List all pretrained pipelines in public

  34. def listUnCategorizedResources(): List[String]

    Permalink

    Returns models or pipelines in metadata json which has not been categorized yet.

    Returns models or pipelines in metadata json which has not been categorized yet.

    returns

    list of models or pipelines which are not categorized in metadata json

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. var publicDownloader: ResourceDownloader

    Permalink
  39. val publicLoc: String

    Permalink
  40. def publicResourceString(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(Build.version), resourceType: ResourceType): String

    Permalink
  41. def resetResourceDownloader(): Unit

    Permalink

    Reset the cache and recreate ResourceDownloader S3 credentials

  42. def s3Bucket: String

    Permalink
  43. def s3BucketCommunity: String

    Permalink
  44. def s3Path: String

    Permalink
  45. def showAvailableAnnotators(folder: String = publicLoc): Unit

    Permalink
  46. def showPublicModels(annotator: String, lang: String, version: String): Unit

    Permalink

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

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

    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"

  47. def showPublicModels(annotator: String, lang: String): Unit

    Permalink

    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

    lang

    Language of the pretrained models to display

  48. def showPublicModels(annotator: String): Unit

    Permalink

    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

  49. def showPublicModels(annotator: Option[String] = None, lang: Option[String] = None, version: Option[String] = Some(Build.version)): Unit

    Permalink

    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"

  50. def showPublicPipelines(lang: String, version: String): Unit

    Permalink

    Prints all Pipelines available for a language and a version of Spark NLP.

    Prints all Pipelines available for a language and a version of Spark NLP.

    lang

    Language of the Pipeline

    version

    Version of Spark NLP

  51. def showPublicPipelines(lang: String): Unit

    Permalink

    Prints all Pipelines available for a language and this version of Spark NLP.

    Prints all Pipelines available for a language and this version of Spark NLP.

    lang

    Language of the Pipeline

  52. def showPublicPipelines(lang: Option[String] = None, version: Option[String] = Some(Build.version)): Unit

    Permalink

    Prints all Pipelines available for a language and a version of Spark NLP.

    Prints all Pipelines available for a language and a version of Spark NLP. By default shows all languages and uses the current version of Spark NLP.

    lang

    Language of the Pipeline

    version

    Version of Spark NLP

  53. def showString(list: List[String], resourceType: ResourceType): String

    Permalink
  54. def showUnCategorizedResources(lang: String, version: String): Unit

    Permalink
  55. def showUnCategorizedResources(lang: String): Unit

    Permalink
  56. lazy val sparkVersion: Version

    Permalink
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  59. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped