diff --git a/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java b/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java index 242a073..cf3e88e 100644 --- a/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java +++ b/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java @@ -143,7 +143,7 @@ public class TestAllWords { dictionaryReader.process(removeFlexiaWithPrefixes); long time = System.currentTimeMillis() - startTime; - System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000L) + " word per second"); + System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000.0) + " word per second"); } diff --git a/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmer.java b/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmer.java index a0ca968..e1ac8f8 100644 --- a/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmer.java +++ b/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmer.java @@ -1,3 +1,18 @@ +/** + * Copyright 2009 Alexander Kuznetsov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.lucene.morphology.english.stemmer; diff --git a/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerFilter.java b/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerFilter.java index c7ff722..bd96ea2 100644 --- a/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerFilter.java +++ b/english/src/main/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerFilter.java @@ -1,13 +1,26 @@ +/** + * Copyright 2009 Alexander Kuznetsov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.lucene.morphology.english.stemmer; import org.apache.lucene.analysis.TokenFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; -import org.apache.lucene.morphology.LuceneMorphology; import java.io.IOException; -import java.util.Iterator; public class EnglishStemmerFilter extends TokenFilter { private EnglishStemmer englishStemmer; diff --git a/english/src/test/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerTest.java b/english/src/test/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerTest.java index e892172..7899279 100644 --- a/english/src/test/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerTest.java +++ b/english/src/test/java/org/apache/lucene/morphology/english/stemmer/EnglishStemmerTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2009 Alexander Kuznetsov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.lucene.morphology.english.stemmer; import org.apache.lucene.morphology.english.EnglishLuceneMorphology;