You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jz...@apache.org on 2020/05/14 13:22:41 UTC

[opennlp] branch master updated: OPENNLP-1302: add missing param tags (#374)

This is an automated email from the ASF dual-hosted git repository.

jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/master by this push:
     new bc13b3d  OPENNLP-1302: add missing param tags (#374)
bc13b3d is described below

commit bc13b3dff04137d364cdf38ee73f2b0555960c1a
Author: Jongwoo Jeon <jo...@illinois.edu>
AuthorDate: Thu May 14 22:22:30 2020 +0900

    OPENNLP-1302: add missing param tags (#374)
    
    * add missing param tags
    
    * OPENNLP-1302: add missing param tags
---
 .../src/main/java/opennlp/uima/normalizer/Normalizer.java        | 2 ++
 .../src/main/java/opennlp/uima/normalizer/StringDictionary.java  | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/opennlp-uima/src/main/java/opennlp/uima/normalizer/Normalizer.java b/opennlp-uima/src/main/java/opennlp/uima/normalizer/Normalizer.java
index 032d230..23c3175 100644
--- a/opennlp-uima/src/main/java/opennlp/uima/normalizer/Normalizer.java
+++ b/opennlp-uima/src/main/java/opennlp/uima/normalizer/Normalizer.java
@@ -113,6 +113,7 @@ public class Normalizer extends CasAnnotator_ImplBase {
    * Initializes the current instance with the given context.
    * <p>
    * Note: Do all initialization in this method, do not use the constructor.
+   * @param context context to initialize
    */
   public void initialize(UimaContext context)
       throws ResourceInitializationException {
@@ -146,6 +147,7 @@ public class Normalizer extends CasAnnotator_ImplBase {
 
   /**
    * Initializes the type system.
+   * @param typeSystem type system to initialize
    */
   public void typeSystemInit(TypeSystem typeSystem)
       throws AnalysisEngineProcessException {
diff --git a/opennlp-uima/src/main/java/opennlp/uima/normalizer/StringDictionary.java b/opennlp-uima/src/main/java/opennlp/uima/normalizer/StringDictionary.java
index d9239bd..993e8da 100644
--- a/opennlp-uima/src/main/java/opennlp/uima/normalizer/StringDictionary.java
+++ b/opennlp-uima/src/main/java/opennlp/uima/normalizer/StringDictionary.java
@@ -50,10 +50,19 @@ public class StringDictionary {
     });
   }
 
+  /**
+   * Returns a corresponding String value from hash map.
+   * @param key key to get value with
+   */
   public String get(StringList key) {
     return entries.get(key);
   }
 
+  /**
+   * Adds a new entry to hash map.
+   * @param key key to put
+   * @param value value to put
+   */
   public void put(StringList key, String value) {
     entries.put(key, value);
   }