object ResourceDownloader
- Alphabetic
- By Inheritance
- ResourceDownloader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cacheFolder: String
- def clearCache(request: ResourceRequest): Unit
- def clearCache(name: String, language: Option[String] = None, folder: String = publicLoc): Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def credentials: Option[AWSCredentials]
- var defaultDownloader: ResourceDownloader
- def downloadModel[TModel <: PipelineStage](reader: DefaultParamsReadable[TModel], request: ResourceRequest): TModel
- def downloadModel[TModel <: PipelineStage](reader: DefaultParamsReadable[TModel], name: String, language: Option[String] = None, folder: String = publicLoc): TModel
- def downloadPipeline(request: ResourceRequest): PipelineModel
- def downloadPipeline(name: String, language: Option[String] = None, folder: String = publicLoc): PipelineModel
-
def
downloadResource(request: ResourceRequest): String
Loads resource to path
Loads resource to path
- request
Request for resource
- returns
path of downloaded resource
-
def
downloadResource(name: String, language: Option[String] = None, folder: String = publicLoc): String
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fs: FileSystem
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDownloadSize(name: String, language: Option[String] = None, folder: String = publicLoc): String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val libVersion: Version
- def listPretrainedResources(folder: String, resourceType: ResourceType, version: Version): List[String]
- def listPretrainedResources(folder: String, resourceType: ResourceType, lang: String, version: Version): List[String]
- def listPretrainedResources(folder: String, resourceType: ResourceType, lang: String): List[String]
-
def
listPretrainedResources(folder: String, resourceType: ResourceType): List[String]
List all resources after parsing the metadata json from the given folder in the S3 location
List all resources after parsing the metadata json from the given folder in the S3 location
- returns
list of pipelines if resourceType is Pipeline or list of models if resourceType is Model
-
def
listPublicModels(): List[String]
List all pretrained models in public name_lang
-
def
listPublicPipelines(): List[String]
List all pretrained pipelines in public
-
def
listUnCategorizedResources(): List[String]
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 piplelines which are not categorized in metadata json
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var publicDownloader: ResourceDownloader
- val publicLoc: String
-
def
resetResourceDownloader(): Unit
Reset the cache and recreate ResourceDownloader S3 credentials
- def s3Bucket: String
- def s3Path: String
- def showPublicModels(lang: String, version: String): Unit
- def showPublicModels(lang: String): Unit
- def showPublicPipelines(lang: String, version: String): Unit
- def showPublicPipelines(lang: String): Unit
- def showString(list: List[String], resourceType: ResourceType): String
- def showUnCategorizedResources(lang: String, version: String): Unit
- def showUnCategorizedResources(lang: String): Unit
- lazy val sparkVersion: Version
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()