Function
| Static Public Summary | ||
| public |
Classifier(classifier: *, stemmer: *) |
|
| public |
Exchanges all keys with their associated values in an object. |
|
| public |
Merge several objects. |
|
| public |
Generate a replacing function given a table of patterns. |
|
| public |
stemmer() |
|
Static Public
public Classifier(classifier: *, stemmer: *) source
import {Classifier} from '@hiherto-elements/natural/src/classifiers/classifier.js'Params:
| Name | Type | Attribute | Description |
| classifier | * | ||
| stemmer | * |
public flip(obj: Object<string, string>): Object<string, string> source
import {flip} from '@hiherto-elements/natural/src/util/utils.js'Exchanges all keys with their associated values in an object.
public merge(var_args: ...Object<string, string>): Object<string, string> source
import {merge} from '@hiherto-elements/natural/src/util/utils.js'Merge several objects. Properties from earlier objects are overwritten by laters's in case of conflict.
public replacer(translationTable: Object<string, string>): function source
import {replacer} from '@hiherto-elements/natural/src/util/utils.js'Generate a replacing function given a table of patterns. Inspired by: http://code.google.com/p/jslibs/wiki/JavascriptTips#String_converter The order of elements is significant. Longer elements should be listed first.
