Class textmodel.TextModelUtilities
textmodel.TextModelUtilities This is the class for the TextModelUtilities
The constructor
Defined in: TextModelUtilities.js.
Constructor Attributes | Constructor Name and Description |
---|---|
textmodel.TextModelUtilities(_fldNames, _fldDelim, tiToString)
|
Method Attributes | Method Name and Description |
---|---|
textArrayToTextInfo(arrayOfText)
Convenience function that recursively creates TextInfo objects from (arrys of) array elments
|
|
TextInfo(text)
Constructor for an object derived from delimited text e.g.
|
Class Detail
textmodel.TextModelUtilities(_fldNames, _fldDelim, tiToString)
- Parameters:
- _fldNames
- is an array of strings of field names
- _fldDelim
- is a string containing the field delimiter
- tiToString
- is a function that will become the toString method of textmodel.TextModelUtilities.TextInfo
Method Detail
textArrayToTextInfo(arrayOfText)
Convenience function that recursively creates TextInfo objects from (arrys of) array elments
- Parameters:
- arrayOfText
- is an array of delimited text, or an array of arrays of delimited text
- Returns:
- corresponding array(s) of TextInfo objects
TextInfo(text)
Constructor for an object derived from delimited text e.g. dogs/dog/NN -> {token:"dogs", lemma:"dog", pos:"NN"}
- Parameters:
- text
- is the delmited text to convert into an object. The field names and delimiter come from trextModel.textModelUtilities