You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/08/24 10:47:21 UTC

svn commit: r1161012 - in /incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools: cmdline/ cmdline/chunker/ cmdline/namefind/ cmdline/postag/ cmdline/sentdetect/ cmdline/tokenizer/ coref/ coref/mention/ coref/resolver/ coref/sim/ dictionary...

Author: joern
Date: Wed Aug 24 08:47:20 2011
New Revision: 1161012

URL: http://svn.apache.org/viewvc?rev=1161012&view=rev
Log:
OPENNLP-265 Code Cleanup: Add missing '@Override' annotations

Modified:
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/TerminateToolException.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/chunker/ChunkEvaluationErrorListener.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/NameEvaluationErrorListener.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSEvaluationErrorListener.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/sentdetect/SentenceEvaluationErrorListener.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/tokenizer/TokenEvaluationErrorListener.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DefaultLinker.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DiscourseElement.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/Mention.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/CommonNounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/DefiniteNounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/IsAResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/MaxentResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PerfectResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralNounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralPronounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/ProperNounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingletonNonReferentialResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingularPronounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SpeechPronounResolver.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/Context.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/GenderEnum.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/NumberEnum.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/SemanticEnum.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/dictionary/Dictionary.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/doccat/DocumentCategorizerEvaluator.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/ad/ADSentenceStream.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/lang/english/TreebankLinker.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/TokenNameFinderModel.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ngram/NGramModel.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/Parse.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/Parser.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/ParserEventStream.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/ParserEventStream.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/postag/POSEvaluator.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/sentdetect/lang/th/SentenceContextGenerator.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/SimpleTokenizer.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokSpanEventStream.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Cache.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/HashList.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Sequence.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Span.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/StringList.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Version.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/CachedFeatureGenerator.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/WindowFeatureGenerator.java
    incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/TerminateToolException.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/TerminateToolException.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/TerminateToolException.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/TerminateToolException.java Wed Aug 24 08:47:20 2011
@@ -45,6 +45,7 @@ public class TerminateToolException exte
     return code;
   }
   
+  @Override
   public String getMessage() {
     return message;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/chunker/ChunkEvaluationErrorListener.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/chunker/ChunkEvaluationErrorListener.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/chunker/ChunkEvaluationErrorListener.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/chunker/ChunkEvaluationErrorListener.java Wed Aug 24 08:47:20 2011
@@ -46,6 +46,7 @@ public class ChunkEvaluationErrorListene
     super(outputStream);
   }
 
+  @Override
   public void missclassified(ChunkSample reference, ChunkSample prediction) {
     printError(reference.getPhrasesAsSpanList(),
         prediction.getPhrasesAsSpanList(), reference, prediction,

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/NameEvaluationErrorListener.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/NameEvaluationErrorListener.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/NameEvaluationErrorListener.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/NameEvaluationErrorListener.java Wed Aug 24 08:47:20 2011
@@ -46,6 +46,7 @@ public class NameEvaluationErrorListener
     super(outputStream);
   }
 
+  @Override
   public void missclassified(NameSample reference, NameSample prediction) {
     printError(reference.getNames(), prediction.getNames(), reference,
         prediction, reference.getSentence());

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSEvaluationErrorListener.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSEvaluationErrorListener.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSEvaluationErrorListener.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/postag/POSEvaluationErrorListener.java Wed Aug 24 08:47:20 2011
@@ -46,6 +46,7 @@ public class POSEvaluationErrorListener 
     super(outputStream);
   }
 
+  @Override
   public void missclassified(POSSample reference, POSSample prediction) {
     printError(reference.getTags(), prediction.getTags(), reference,
         prediction, reference.getSentence());

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/sentdetect/SentenceEvaluationErrorListener.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/sentdetect/SentenceEvaluationErrorListener.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/sentdetect/SentenceEvaluationErrorListener.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/sentdetect/SentenceEvaluationErrorListener.java Wed Aug 24 08:47:20 2011
@@ -47,6 +47,7 @@ public class SentenceEvaluationErrorList
     super(outputStream);
   }
 
+  @Override
   public void missclassified(SentenceSample reference, SentenceSample prediction) {
     printError(reference.getSentences(), prediction.getSentences(), reference,
         prediction, reference.getDocument());

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/tokenizer/TokenEvaluationErrorListener.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/tokenizer/TokenEvaluationErrorListener.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/tokenizer/TokenEvaluationErrorListener.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/tokenizer/TokenEvaluationErrorListener.java Wed Aug 24 08:47:20 2011
@@ -46,6 +46,7 @@ public class TokenEvaluationErrorListene
     super(outputStream);
   }
 
+  @Override
   public void missclassified(TokenSample reference, TokenSample prediction) {
     printError(reference.getTokenSpans(), prediction.getTokenSpans(),
         reference, prediction, reference.getText());

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DefaultLinker.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DefaultLinker.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DefaultLinker.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DefaultLinker.java Wed Aug 24 08:47:20 2011
@@ -170,10 +170,12 @@ public class DefaultLinker extends Abstr
     mentionFinder = ShallowParseMentionFinder.getInstance(headFinder);
   }
 
+  @Override
   protected Gender computeGender(MentionContext mention) {
     return mcm.computeGender(mention);
   }
 
+  @Override
   protected Number computeNumber(MentionContext mention) {
     return mcm.computeNumber(mention);
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DiscourseElement.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DiscourseElement.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DiscourseElement.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/DiscourseElement.java Wed Aug 24 08:47:20 2011
@@ -109,6 +109,7 @@ public abstract class DiscourseElement {
     return(id);
   }
 
+  @Override
   public String toString() {
     Iterator<MentionContext> ei = extents.iterator();
     MentionContext ex = ei.next();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/Mention.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/Mention.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/Mention.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/Mention.java Wed Aug 24 08:47:20 2011
@@ -152,6 +152,7 @@ public class Mention implements Comparab
     return id;
   }
 
+  @Override
   public String toString() {
     return "mention(span="+span+",hs="+headSpan+", type="+type+", id="+id+" "+parse+" )";
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/CommonNounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/CommonNounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/CommonNounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/CommonNounResolver.java Wed Aug 24 08:47:20 2011
@@ -41,6 +41,7 @@ public class CommonNounResolver extends 
     preferFirstReferent = true;
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));
@@ -58,6 +59,7 @@ public class CommonNounResolver extends 
     return rv;
   }
 
+  @Override
   protected boolean excluded(MentionContext ec, DiscourseEntity de) {
     if (super.excluded(ec, de)) {
       return true;

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/DefiniteNounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/DefiniteNounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/DefiniteNounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/DefiniteNounResolver.java Wed Aug 24 08:47:20 2011
@@ -51,6 +51,7 @@ public class DefiniteNounResolver extend
     return (rv);
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/IsAResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/IsAResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/IsAResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/IsAResolver.java Wed Aug 24 08:47:20 2011
@@ -54,6 +54,7 @@ public class IsAResolver extends MaxentR
     return false;
   }
 
+  @Override
   protected boolean excluded(MentionContext ec, DiscourseEntity de) {
     MentionContext cec = de.getLastExtent();
     //System.err.println("IsAResolver.excluded?: ec.span="+ec.getSpan()+" cec.span="+cec.getSpan()+" cec="+cec.toText()+" lastToken="+ec.getNextToken());
@@ -80,15 +81,18 @@ public class IsAResolver extends MaxentR
     return (true);
   }
 
+  @Override
   protected boolean outOfRange(MentionContext ec, DiscourseEntity de) {
     MentionContext cec = de.getLastExtent();
     return (cec.getSentenceNumber() != ec.getSentenceNumber());
   }
 
+  @Override
   protected boolean defaultReferent(DiscourseEntity de) {
     return (true);
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/MaxentResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/MaxentResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/MaxentResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/MaxentResolver.java Wed Aug 24 08:47:20 2011
@@ -224,6 +224,7 @@ public abstract class MaxentResolver ext
     return (false);
   }
 
+  @Override
   public DiscourseEntity retain(MentionContext mention, DiscourseModel dm) {
     //System.err.println(this+".retain("+ec+") "+mode);
     if (ResolverMode.TRAIN == mode) {
@@ -301,6 +302,7 @@ public abstract class MaxentResolver ext
     return features;
   }
 
+  @Override
   public void train() throws IOException {
     if (ResolverMode.TRAIN == mode) {
       if (debugOn) {
@@ -321,6 +323,7 @@ public abstract class MaxentResolver ext
     simModel = sm;
   }
 
+  @Override
   protected boolean excluded(MentionContext ec, DiscourseEntity de) {
     if (super.excluded(ec, de)) {
       return true;

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PerfectResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PerfectResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PerfectResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PerfectResolver.java Wed Aug 24 08:47:20 2011
@@ -34,6 +34,7 @@ public class PerfectResolver extends  Ab
     return true;
   }
 
+  @Override
   protected boolean outOfRange(MentionContext ec, DiscourseEntity de) {
     return false;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralNounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralNounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralNounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralNounResolver.java Wed Aug 24 08:47:20 2011
@@ -41,6 +41,7 @@ public class PluralNounResolver extends 
   }
 
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));
@@ -59,6 +60,7 @@ public class PluralNounResolver extends 
     return rv;
   }
 
+  @Override
   protected boolean excluded(MentionContext mention, DiscourseEntity entity) {
     if (super.excluded(mention,entity)) {
       return true;

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralPronounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralPronounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralPronounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/PluralPronounResolver.java Wed Aug 24 08:47:20 2011
@@ -39,6 +39,7 @@ public class PluralPronounResolver exten
     super(projectName, "tmodel", m, 30,nrr);
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention,entity));
@@ -77,6 +78,7 @@ public class PluralPronounResolver exten
     return (features);
   }
 
+  @Override
   protected boolean outOfRange(MentionContext mention, DiscourseEntity entity) {
     MentionContext cec = entity.getLastExtent();
     //System.err.println("MaxentPluralPronounResolver.outOfRange: ["+ec.toText()+" ("+ec.id+")] ["+cec.toText()+" ("+cec.id+")] ec.sentenceNumber=("+ec.sentenceNumber+")-cec.sentenceNumber=("+cec.sentenceNumber+") > "+NUM_SENTS_BACK_PRONOUNS);

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/ProperNounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/ProperNounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/ProperNounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/ProperNounResolver.java Wed Aug 24 08:47:20 2011
@@ -115,6 +115,7 @@ public class ProperNounResolver extends 
     return Collections.emptyList();
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     //System.err.println("ProperNounResolver.getFeatures: "+mention.toText()+" -> "+entity);
     List<String> features = new ArrayList<String>();
@@ -126,6 +127,7 @@ public class ProperNounResolver extends 
     return features;
   }
 
+  @Override
   public boolean excluded(MentionContext mention, DiscourseEntity entity) {
     if (super.excluded(mention, entity)) {
       return true;

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingletonNonReferentialResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingletonNonReferentialResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingletonNonReferentialResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingletonNonReferentialResolver.java Wed Aug 24 08:47:20 2011
@@ -41,6 +41,7 @@ public class SingletonNonReferentialReso
   }
 
 
+  @Override
   public void train() throws IOException {
     if (!trained) {
       super.train();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingularPronounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingularPronounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingularPronounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SingularPronounResolver.java Wed Aug 24 08:47:20 2011
@@ -51,6 +51,7 @@ public class SingularPronounResolver ext
     return (tag != null && tag.startsWith("PRP") && ResolverUtils.singularThirdPersonPronounPattern.matcher(mention.getHeadTokenText()).matches());
   }
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));
@@ -98,6 +99,7 @@ public class SingularPronounResolver ext
     return (features);
   }
 
+  @Override
   public boolean excluded(MentionContext mention, DiscourseEntity entity) {
     if (super.excluded(mention, entity)) {
       return (true);
@@ -120,6 +122,7 @@ public class SingularPronounResolver ext
     return (false);
   }
 
+  @Override
   protected boolean outOfRange(MentionContext mention, DiscourseEntity entity) {
     MentionContext cec = entity.getLastExtent();
     //System.err.println("MaxentSingularPronounresolve.outOfRange: ["+entity.getLastExtent().toText()+" ("+entity.getId()+")] ["+mention.toText()+" ("+mention.getId()+")] entity.sentenceNumber=("+entity.getLastExtent().getSentenceNumber()+")-mention.sentenceNumber=("+mention.getSentenceNumber()+") > "+numSentencesBack);

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SpeechPronounResolver.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SpeechPronounResolver.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SpeechPronounResolver.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/resolver/SpeechPronounResolver.java Wed Aug 24 08:47:20 2011
@@ -43,6 +43,7 @@ public class SpeechPronounResolver exten
   }
 
 
+  @Override
   protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
     List<String> features = new ArrayList<String>();
     features.addAll(super.getFeatures(mention, entity));
@@ -70,6 +71,7 @@ public class SpeechPronounResolver exten
     return (features);
   }
 
+  @Override
   protected boolean outOfRange(MentionContext mention, DiscourseEntity entity) {
     MentionContext cec = entity.getLastExtent();
     return (mention.getSentenceNumber() - cec.getSentenceNumber() > numSentencesBack);
@@ -82,6 +84,7 @@ public class SpeechPronounResolver exten
     return (fpp || pn);
   }
 
+  @Override
   protected boolean excluded(MentionContext mention, DiscourseEntity entity) {
     if (super.excluded(mention, entity)) {
       return true;

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/Context.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/Context.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/Context.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/Context.java Wed Aug 24 08:47:20 2011
@@ -87,6 +87,7 @@ public class Context extends Mention {
   }
 
 
+  @Override
   public String toString() {
     StringBuffer sb = new StringBuffer();
     for (int ti=0,tl=tokens.length;ti<tl;ti++){

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/GenderEnum.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/GenderEnum.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/GenderEnum.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/GenderEnum.java Wed Aug 24 08:47:20 2011
@@ -36,6 +36,7 @@ public class GenderEnum {
     gender = g;
   }
 
+  @Override
   public String toString() {
     return gender;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/NumberEnum.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/NumberEnum.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/NumberEnum.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/NumberEnum.java Wed Aug 24 08:47:20 2011
@@ -43,6 +43,7 @@ public class NumberEnum {
     this.name = name;
   }
 
+  @Override
   public String toString(){
     return name;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/SemanticEnum.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/SemanticEnum.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/SemanticEnum.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/sim/SemanticEnum.java Wed Aug 24 08:47:20 2011
@@ -32,6 +32,7 @@ public class SemanticEnum {
     compatibility = g;
   }
 
+  @Override
   public String toString() {
     return compatibility;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/dictionary/Dictionary.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/dictionary/Dictionary.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/dictionary/Dictionary.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/dictionary/Dictionary.java Wed Aug 24 08:47:20 2011
@@ -53,6 +53,7 @@ public class Dictionary implements Itera
       return stringList;
     }
 
+    @Override
     public boolean equals(Object obj) {
 
       boolean result;
@@ -77,11 +78,13 @@ public class Dictionary implements Itera
       return result;
     }
 
+    @Override
     public int hashCode() {
       // if lookup is too slow optimize this
       return this.stringList.toString().toLowerCase().hashCode();
     }
 
+    @Override
     public String toString() {
       return this.stringList.toString();
     }
@@ -215,6 +218,7 @@ public class Dictionary implements Itera
     DictionarySerializer.serialize(out, entryIterator, isCaseSensitive);
   }
 
+  @Override
   public boolean equals(Object obj) {
 
     boolean result;
@@ -234,10 +238,12 @@ public class Dictionary implements Itera
     return result;
   }
 
+  @Override
   public int hashCode() {
     return entrySet.hashCode();
   }
 
+  @Override
   public String toString() {
     return entrySet.toString();
   }
@@ -289,6 +295,7 @@ public class Dictionary implements Itera
   public Set<String> asStringSet() {
     return new AbstractSet<String>() {
 
+      @Override
       public Iterator<String> iterator() {
         final Iterator<StringListWrapper> entries = entrySet.iterator();
 

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/doccat/DocumentCategorizerEvaluator.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/doccat/DocumentCategorizerEvaluator.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/doccat/DocumentCategorizerEvaluator.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/doccat/DocumentCategorizerEvaluator.java Wed Aug 24 08:47:20 2011
@@ -101,6 +101,7 @@ public class DocumentCategorizerEvaluato
   /**
    * Represents this objects as human readable {@link String}.
    */
+  @Override
   public String toString() {
     return "Accuracy: " + accuracy.mean() + "\n" +
         "Number of documents: " + accuracy.count();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/ad/ADSentenceStream.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/ad/ADSentenceStream.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/ad/ADSentenceStream.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/ad/ADSentenceStream.java Wed Aug 24 08:47:20 2011
@@ -388,6 +388,7 @@ public class ADSentenceStream extends
       private String word;
       private String lemma;
 
+      @Override
       public boolean isLeaf() {return true;}
       
       public void setLexeme(String lexeme) {

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/lang/english/TreebankLinker.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/lang/english/TreebankLinker.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/lang/english/TreebankLinker.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/lang/english/TreebankLinker.java Wed Aug 24 08:47:20 2011
@@ -61,6 +61,7 @@ public class TreebankLinker extends Defa
     super(project,mode,useDiscourseModel,fixedNonReferentialProbability);
   }
 
+  @Override
   protected void initMentionFinder() {
     mentionFinder = PTBMentionFinder.getInstance(headFinder);
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameSample.java Wed Aug 24 08:47:20 2011
@@ -117,6 +117,7 @@ public class NameSample {
     
   }
   
+  @Override
   public String toString() {
     StringBuilder result = new StringBuilder();
 

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/TokenNameFinderModel.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/TokenNameFinderModel.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/TokenNameFinderModel.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/TokenNameFinderModel.java Wed Aug 24 08:47:20 2011
@@ -238,6 +238,7 @@ public class TokenNameFinderModel extend
     return true;
   }
   
+  @Override
   protected void validateArtifactMap() throws InvalidFormatException {
     super.validateArtifactMap();
     

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ngram/NGramModel.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ngram/NGramModel.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ngram/NGramModel.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ngram/NGramModel.java Wed Aug 24 08:47:20 2011
@@ -337,6 +337,7 @@ public class NGramModel implements Itera
 	    DictionarySerializer.serialize(out, entryIterator, false);
   }
 
+  @Override
   public boolean equals(Object obj) {
     boolean result;
 
@@ -355,10 +356,12 @@ public class NGramModel implements Itera
     return result;
    }
 
+  @Override
   public String toString() {
     return "Size: " + size();
   }
 
+  @Override
   public int hashCode() {
     return mNGrams.hashCode();
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/Parse.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/Parse.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/Parse.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/Parse.java Wed Aug 24 08:47:20 2011
@@ -956,6 +956,7 @@ public class Parse implements Cloneable,
     return null;
   }
   
+  @Override
   public boolean equals(Object o) {
     if (o instanceof Parse) {
       Parse p = (Parse) o;
@@ -983,6 +984,7 @@ public class Parse implements Cloneable,
     return false;
   }
   
+  @Override
   public int hashCode() {
     int result = 17;
     result = 37*result + span.hashCode();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/Parser.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/Parser.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/Parser.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/Parser.java Wed Aug 24 08:47:20 2011
@@ -139,6 +139,7 @@ public class Parser extends AbstractBott
     incompleteIndex = checkModel.getIndex(INCOMPLETE);
   }
 
+  @Override
   protected void advanceTop(Parse p) {
     buildModel.eval(buildContextGenerator.getContext(p.getChildren(), 0), bprobs);
     p.addProb(Math.log(bprobs[topStartIndex]));
@@ -147,6 +148,7 @@ public class Parser extends AbstractBott
     p.setType(TOP_NODE);
   }
 
+  @Override
   protected Parse[] advanceParses(final Parse p, double probMass) {
     double q = 1 - probMass;
     /** The closest previous node which has been labeled as a start node. */

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/ParserEventStream.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/ParserEventStream.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/ParserEventStream.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/chunking/ParserEventStream.java Wed Aug 24 08:47:20 2011
@@ -52,6 +52,7 @@ public class ParserEventStream extends A
     super(d,rules,etype,dict);
   }
 
+  @Override
   protected void init() {
     if (etype == ParserEventTypeEnum.BUILD) {
       this.bcg = new BuildContextGenerator(dict);
@@ -117,6 +118,7 @@ public class ParserEventStream extends A
    * @param parseEvents The events for the specified chunks.
    * @param chunks The incomplete parses to be parsed.
    */
+  @Override
   protected void addParseEvents(List<Event> parseEvents, Parse[] chunks) {
     int ci = 0;
     while (ci < chunks.length) {

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/Parser.java Wed Aug 24 08:47:20 2011
@@ -221,6 +221,7 @@ public class Parser extends AbstractBott
     }
   }
 
+  @Override
   protected Parse[] advanceChunks(Parse p, double minChunkScore) {
     Parse[] parses = super.advanceChunks(p, minChunkScore);
     for (int pi=0;pi<parses.length;pi++) {
@@ -232,6 +233,7 @@ public class Parser extends AbstractBott
     return parses;
   }
 
+  @Override
   protected Parse[] advanceParses(Parse p, double probMass) {
     double q = 1 - probMass;
     /** The index of the node which will be labeled in this iteration of advancing the parse. */
@@ -433,6 +435,7 @@ public class Parser extends AbstractBott
     return newParses;
   }
 
+  @Override
   protected void advanceTop(Parse p) {
     p.setType(TOP_NODE);
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/ParserEventStream.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/ParserEventStream.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/ParserEventStream.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/treeinsert/ParserEventStream.java Wed Aug 24 08:47:20 2011
@@ -53,6 +53,7 @@ public class ParserEventStream extends A
     super(d, rules, etype, dict);
   }
 
+  @Override
   public void init() {
     buildContextGenerator = new BuildContextGenerator();
     attachContextGenerator = new AttachContextGenerator(punctSet);
@@ -110,6 +111,7 @@ public class ParserEventStream extends A
   }
   */
 
+  @Override
   protected boolean lastChild(Parse child, Parse parent) {
     boolean lc = super.lastChild(child, parent);
     while(!lc) {
@@ -125,6 +127,7 @@ public class ParserEventStream extends A
     return lc;
   }
 
+  @Override
   protected void addParseEvents(List<Event> parseEvents, Parse[] chunks) {
     /** Frontier nodes built from node in a completed parse.  Specifically,
      * they have all their children regardless of the stage of parsing.*/

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/postag/POSEvaluator.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/postag/POSEvaluator.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/postag/POSEvaluator.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/postag/POSEvaluator.java Wed Aug 24 08:47:20 2011
@@ -97,6 +97,7 @@ public class POSEvaluator extends Evalua
   /**
    * Represents this objects as human readable {@link String}.
    */
+  @Override
   public String toString() {
     return "Accuracy:" + wordAccuracy.mean() +
         " Number of Samples: " + wordAccuracy.count();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/sentdetect/lang/th/SentenceContextGenerator.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/sentdetect/lang/th/SentenceContextGenerator.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/sentdetect/lang/th/SentenceContextGenerator.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/sentdetect/lang/th/SentenceContextGenerator.java Wed Aug 24 08:47:20 2011
@@ -31,6 +31,7 @@ public class SentenceContextGenerator ex
     super(eosCharacters);
   }
 
+  @Override
   protected void collectFeatures(String prefix, String suffix, String previous, String next) {
     buf.append("p=");
     buf.append(prefix);

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/SimpleTokenizer.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/SimpleTokenizer.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/SimpleTokenizer.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/SimpleTokenizer.java Wed Aug 24 08:47:20 2011
@@ -132,6 +132,7 @@ class CharacterEnum {
     this.name = name;
   }
 
+  @Override
   public String toString() {
     return name;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokSpanEventStream.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokSpanEventStream.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokSpanEventStream.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/tokenize/TokSpanEventStream.java Wed Aug 24 08:47:20 2011
@@ -94,6 +94,7 @@ public class TokSpanEventStream extends 
    * @param tokens character offsets into the specified text.
    * @param text The text of the tokens.
    */
+  @Override
   protected Iterator<Event> createEvents(TokenSample tokenSample) {
 
     List<Event> events = new ArrayList<Event>(50);

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Cache.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Cache.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Cache.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Cache.java Wed Aug 24 08:47:20 2011
@@ -334,6 +334,7 @@ class DoubleLinkedList {
 	return current;
   }
 
+  @Override
   public String toString() {
 	DoubleLinkedListElement e = first;
 	String s = "[" + e.object.toString();

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/HashList.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/HashList.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/HashList.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/HashList.java Wed Aug 24 08:47:20 2011
@@ -59,6 +59,7 @@ public class HashList extends HashMap {
       return o;
   }
 
+  @Override
   public List put(Object key, Object value) {
     List o = (List) get(key);
 

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Sequence.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Sequence.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Sequence.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Sequence.java Wed Aug 24 08:47:20 2011
@@ -109,6 +109,7 @@ public class Sequence implements Compara
     }
   }
 
+  @Override
   public String toString() {
     return score + " "+outcomes;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Span.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Span.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Span.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Span.java Wed Aug 24 08:47:20 2011
@@ -208,6 +208,7 @@ public class Span implements Comparable<
   /**
    * Generates a hash code of the current span.
    */
+  @Override
   public int hashCode() {
     int res = 23;
     res = res * 37 + getStart();
@@ -225,6 +226,7 @@ public class Span implements Comparable<
   /**
    * Checks if the specified span is equal to the current span.
    */
+  @Override
   public boolean equals(Object o) {
 
     boolean result;
@@ -250,6 +252,7 @@ public class Span implements Comparable<
   /**
    * Generates a human readable string.
    */
+  @Override
   public String toString() {
     StringBuffer toStringBuffer = new StringBuffer(15);
     toStringBuffer.append(getStart());

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/StringList.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/StringList.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/StringList.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/StringList.java Wed Aug 24 08:47:20 2011
@@ -144,6 +144,7 @@ public class StringList implements Itera
   }
 
 
+  @Override
   public boolean equals(Object obj) {
 
     boolean result;
@@ -163,6 +164,7 @@ public class StringList implements Itera
     return result;
   }
 
+  @Override
   public int hashCode() {
     int numBitsRegular = 32 / size();
     int numExtra = 32 % size();
@@ -191,6 +193,7 @@ public class StringList implements Itera
     return code;
   }
 
+  @Override
   public String toString() {
     StringBuffer string = new StringBuffer();
 

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Version.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Version.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Version.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/Version.java Wed Aug 24 08:47:20 2011
@@ -118,6 +118,7 @@ public class Version {
    *
    * @return the version value string
    */
+  @Override
   public String toString() {
     return Integer.toString(getMajor()) + "." + Integer.toString(getMinor()) +
       "." + Integer.toString(getRevision()) + (isSnapshot() ? SNAPSHOT_MARKER : "");

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/CachedFeatureGenerator.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/CachedFeatureGenerator.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/CachedFeatureGenerator.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/CachedFeatureGenerator.java Wed Aug 24 08:47:20 2011
@@ -98,6 +98,7 @@ public class CachedFeatureGenerator impl
     return numberOfCacheMisses;
   }
 
+  @Override
   public String toString() {
     return super.toString()+": hits=" + numberOfCacheHits+" misses="+ numberOfCacheMisses+" hit%"+ (numberOfCacheHits > 0 ?
         (double) numberOfCacheHits/(numberOfCacheMisses+numberOfCacheHits) : 0);

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/WindowFeatureGenerator.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/WindowFeatureGenerator.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/WindowFeatureGenerator.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/featuregen/WindowFeatureGenerator.java Wed Aug 24 08:47:20 2011
@@ -124,6 +124,7 @@ public class WindowFeatureGenerator impl
       generator.clearAdaptiveData();
   }
 
+  @Override
   public String toString() {
     return super.toString()+": Prev windwow size: " + prevWindowSize +", Next window size: " + nextWindowSize;
   }

Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java?rev=1161012&r1=1161011&r2=1161012&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java Wed Aug 24 08:47:20 2011
@@ -62,6 +62,7 @@ public final class ModelUtil {
       throw new IllegalArgumentException("out parameter must not be null!");
     
     GenericModelWriter modelWriter = new GenericModelWriter(model, new DataOutputStream(new OutputStream() {
+      @Override
       public void write(int b) throws IOException {
         out.write(b);
       }