TokenSet.fromClause constructor
TokenSet.fromClause(
- Clause clause
Implementation
factory TokenSet.fromClause(Clause clause) {
if ((clause.editDistance ?? 0) > 0) {
return TokenSet.fromFuzzyString(clause.term, clause.editDistance!);
} else {
return TokenSet.fromString(clause.term);
}
}