AlvisNLP

corpus processing engine

SourceStream

Synopsis

Converts into a data source.

String conversion

The data source takes either the form of a file/directory path, or an URL. The following protocols are recognized:

If an absolute or relative path is specified, then dir is assumed. Relative paths are relative to the current working directory.

XML conversion

<param value="URL"/>

or

<param file="URL"/>

or

<param path="URL"/>

or

<param url="URL"/>

or

<param href="URL"/>

or

<param dir="URL"/>

or

<param resource="URL"/>

or

<param>URL</param>

URL is converted as described in the string conversion. All different forms are equivalent; the name of the used attribute has no influence on the data source type. It is thus perfectly legal to write

<param resource="dir:///path/to/dir"/>

. Other attributes allow to specify the data source:

If

param

has children elements, then each element will be converted as a data source. The resulting is the concatenation of all data sources.