Searched defs:sd (Results 1 - 6 of 6) sorted by relevance

/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/spell/
H A DTestJaroWinklerDistance.java24 private StringDistance sd = new JaroWinklerDistance(); field in class:TestJaroWinklerDistance
27 float d = sd.getDistance("al", "al");
29 d = sd.getDistance("martha", "marhta");
31 d = sd.getDistance("jones", "johnson");
33 d = sd.getDistance("abcvwxyz", "cabvwxyz");
35 d = sd.getDistance("dwayne", "duane");
37 d = sd.getDistance("dixon", "dicksonx");
39 d = sd.getDistance("fvie", "ten");
41 float d1 = sd.getDistance("zac ephron", "zac efron");
42 float d2 = sd
[all...]
H A DTestLevenshteinDistance.java24 private StringDistance sd = new LevensteinDistance(); field in class:TestLevenshteinDistance
27 float d = sd.getDistance("al", "al");
29 d = sd.getDistance("martha", "marhta");
31 d = sd.getDistance("jones", "johnson");
33 d = sd.getDistance("abcvwxyz", "cabvwxyz");
35 d = sd.getDistance("dwayne", "duane");
37 d = sd.getDistance("dixon", "dicksonx");
39 d = sd.getDistance("six", "ten");
41 float d1 = sd.getDistance("zac ephron", "zac efron");
42 float d2 = sd
[all...]
H A DTestSpellChecker.java519 public SpellCheckerMock(Directory spellIndex, StringDistance sd) argument
521 super(spellIndex, sd);
524 public SpellCheckerMock(Directory spellIndex, StringDistance sd, Comparator<SuggestWord> comparator) throws IOException { argument
525 super(spellIndex, sd, comparator);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/in/
H A DIndicNormalizer.java225 for (ScriptData sd : scripts.values()) {
226 sd.decompMask = new BitSet(0x7F);
230 if ((flags & sd.flag) != 0)
231 sd.decompMask.set(ch);
247 final ScriptData sd = scripts.get(block);
248 if (sd != null) {
249 final int ch = text[i] - sd.base;
250 if (sd.decompMask.get(ch))
251 len = compose(ch, block, sd, text, i, len);
260 private int compose(int ch0, Character.UnicodeBlock block0, ScriptData sd, argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/
H A DAbstractLuceneSpellChecker.java91 protected StringDistance sd; field in class:AbstractLuceneSpellChecker
120 sd = (StringDistance) core.getResourceLoader().newInstance(strDistanceName);
123 sd = new LevensteinDistance();
127 spellChecker = new SpellChecker(index, sd, comp);
277 return sd;
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/
H A DSpellChecker.java114 private StringDistance sd; field in class:SpellChecker
121 * @param sd the {@link StringDistance} measurement to use
124 public SpellChecker(Directory spellIndex, StringDistance sd) throws IOException { argument
125 this(spellIndex, sd, SuggestWordQueue.DEFAULT_COMPARATOR);
145 * @param sd The distance
149 public SpellChecker(Directory spellIndex, StringDistance sd, Comparator<SuggestWord> comparator) throws IOException { argument
151 setStringDistance(sd);
195 * @param sd the {@link StringDistance} implementation for this
198 public void setStringDistance(StringDistance sd) { argument
199 this.sd
[all...]

Completed in 716 milliseconds