sparknlp.common.utils
#
Contains utilities for annotators.
Module Contents#
Functions#
|
Returns a representation fo an External Resource. |
- ExternalResource(path, read_as=ReadAs.TEXT, options={})[source]#
Returns a representation fo an External Resource.
How the resource is read can be set with read_as.
- Parameters:
- pathstr
Path to the resource
- read_asstr, optional
How to read the resource, by default ReadAs.TEXT
- optionsdict, optional
Options to read the resource, by default {}