This represents an external source which contains information into how an external resource shall be read by Spark-NLP's Resource Helper.
Helper one-place for IO management.
Helper one-place for IO management. Streams, source and external input should be handled from here
This represents an external source which contains information into how an external resource shall be read by Spark-NLP's Resource Helper.
ReadAs.TEXT
will configure the file to be read locally as textReadAs.BINARY
will configure the file to be read locally as binaryReadAs.SPARK
will configure the file to be read by Spark."format"
will need to be defined inoptions
.Example
Path to the resource
How to interpret the resource. Possible values are
ReadAs.SPARK, ReadAs.TEXT, ReadAs.BINARY
Options for Spark. Option
format
needs to be set ifreadAs
is set toReadAs.SPARK