fixing typo

git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@98 d817d54c-26ab-11de-abc9-2f7d1455ff7a
This commit is contained in:
alexander.a.kuznetsov
2010-05-30 06:18:58 +00:00
parent 7bf8ef7d6f
commit e8399999c3
14 changed files with 55 additions and 55 deletions

View File

@ -15,14 +15,14 @@
*/
package org.apache.lucene.morphology.english;
import org.apache.lucene.morphology.analayzer.MorphlogyAnalayzer;
import org.apache.lucene.morphology.analyzer.MorphologyAnalyzer;
import java.io.IOException;
public class EnglishAnalayzer extends MorphlogyAnalayzer {
public class EnglishAnalyzer extends MorphologyAnalyzer {
public EnglishAnalayzer() throws IOException {
public EnglishAnalyzer() throws IOException {
super(new EnglishLuceneMorphology());
}

View File

@ -39,12 +39,12 @@ public class EnglishAnalayzerTest {
HashSet<String> answer = new HashSet<String>(Arrays.asList(strings));
stream.close();
EnglishAnalayzer morphlogyAnalayzer = new EnglishAnalayzer();
EnglishAnalyzer morphlogyAnalyzer = new EnglishAnalyzer();
stream = this.getClass().getResourceAsStream("/org/apache/lucene/morphology/english/englsih-analayzer-data.txt");
InputStreamReader reader = new InputStreamReader(stream, "UTF-8");
TokenStream tokenStream = morphlogyAnalayzer.tokenStream(null, reader);
TokenStream tokenStream = morphlogyAnalyzer.tokenStream(null, reader);
HashSet<String> result = new HashSet<String>();
while (tokenStream.incrementToken()) {
TermAttribute attribute1 = tokenStream.getAttribute(TermAttribute.class);