Revert: change default word breaker to placeholder again.

This commit is contained in:
Eddie Antonio Santos 2019-05-22 11:50:48 -06:00
parent f205f868c4
commit 969ceafbd5
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
constructor(trieData: object, options: TrieModelOptions = {}) {
this._trie = new Trie(trieData as Node);
this.breakWords = options.wordBreaker || wordBreakers.default;
this.breakWords = options.wordBreaker || wordBreakers.placeholder;
}
configure(capabilities: Capabilities): Configuration {

View file

@ -61,7 +61,7 @@
// [wordform, count] pairs. Since this model does not
// support weighting, discard the count.
this._wordlist = wordlist.map(([word, _count]) => word);
this.breakWords = options.wordBreaker || wordBreakers.default;
this.breakWords = options.wordBreaker || wordBreakers.placeholder;
}
configure(capabilities: Capabilities): Configuration {