commented out unused
This commit is contained in:
parent
2f9a1c7a6a
commit
a9a80958ce
|
@ -75,7 +75,7 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory {
|
||||||
|
|
||||||
static void parseRules(List<String> rules, SynonymMap map, String mappingSep,
|
static void parseRules(List<String> rules, SynonymMap map, String mappingSep,
|
||||||
String synSep, boolean expansion, TokenizerFactory tokFactory) {
|
String synSep, boolean expansion, TokenizerFactory tokFactory) {
|
||||||
int count = 0;
|
// int count = 0;
|
||||||
for (String rule : rules) {
|
for (String rule : rules) {
|
||||||
// To use regexes, we need an expression that specifies an odd number of chars.
|
// To use regexes, we need an expression that specifies an odd number of chars.
|
||||||
// This can't really be done with string.split(), and since we need to
|
// This can't really be done with string.split(), and since we need to
|
||||||
|
@ -106,7 +106,7 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory {
|
||||||
|
|
||||||
boolean includeOrig = false;
|
boolean includeOrig = false;
|
||||||
for (List<String> fromToks : source) {
|
for (List<String> fromToks : source) {
|
||||||
count++;
|
// count++;
|
||||||
for (List<String> toToks : target) {
|
for (List<String> toToks : target) {
|
||||||
map.add(fromToks,
|
map.add(fromToks,
|
||||||
SynonymMap.makeTokens(toToks),
|
SynonymMap.makeTokens(toToks),
|
||||||
|
|
Loading…
Reference in New Issue