Author: ogrisel
Date: Wed Feb 23 16:28:57 2011
New Revision: 1073812

URL: http://svn.apache.org/viewvc?rev=1073812&view=rev
Log:
STANBOL-103: add labels / descriptions for NER component and configuration 
property

Added:
    
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/
    
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/
    
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/metatype.properties
Modified:
    
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/java/org/apache/stanbol/enhancer/engines/opennlp/impl/NamedEntityExtractionEnhancementEngine.java

Modified: 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/java/org/apache/stanbol/enhancer/engines/opennlp/impl/NamedEntityExtractionEnhancementEngine.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/java/org/apache/stanbol/enhancer/engines/opennlp/impl/NamedEntityExtractionEnhancementEngine.java?rev=1073812&r1=1073811&r2=1073812&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/java/org/apache/stanbol/enhancer/engines/opennlp/impl/NamedEntityExtractionEnhancementEngine.java
 (original)
+++ 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/java/org/apache/stanbol/enhancer/engines/opennlp/impl/NamedEntityExtractionEnhancementEngine.java
 Wed Feb 23 16:28:57 2011
@@ -68,9 +68,9 @@ import org.osgi.service.component.Compon
 
 /**
  * Apache Stanbol Enhancer Named Entity Recognition enhancement engine based 
on opennlp's Maximum Entropy
- * models and a DBpedia index for optionally matching them to well know 
DBpedia entities.
+ * models.
  */
-@Component(immediate = true, metatype = true)
+@Component(immediate = true, metatype = true, label = 
"%stanbol.NamedEntityExtractionEnhancementEngine.name", description = 
"%stanbol.NamedEntityExtractionEnhancementEngine.description")
 @Service
 public class NamedEntityExtractionEnhancementEngine implements 
EnhancementEngine, ServiceProperties {
 
@@ -83,7 +83,7 @@ public class NamedEntityExtractionEnhanc
     protected static final String TEXT_PLAIN_MIMETYPE = "text/plain";
 
     @Property
-    public static final String MODELS_PATH = 
"org.apache.stanbol.enhancer.engines.opennlp.models.path";
+    public static final String MODELS_PATH = "stanbol.opennlp.models.path";
 
     public static final Log log = 
LogFactory.getLog(NamedEntityExtractionEnhancementEngine.class);
 

Added: 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/metatype.properties
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/metatype.properties?rev=1073812&view=auto
==============================================================================
--- 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/metatype.properties
 (added)
+++ 
incubator/stanbol/trunk/enhancer/engines/opennlp-ner/src/main/resources/OSGI-INF/metatype/metatype.properties
 Wed Feb 23 16:28:57 2011
@@ -0,0 +1,27 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you 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.
+
+# This file contains localization strings for configuration labels and
+# descriptions as used in the metatype.xml descriptor generated by the
+# the maven SCR plugin
+
+stanbol.NamedEntityExtractionEnhancementEngine.name = Apache Stanbol Named 
Entity Extraction engine
+stanbol.NamedEntityExtractionEnhancementEngine.description = Find names of 
people, organization, \
+ places... using previously trained OpenNLP models.
+stanbol.opennlp.models.path.name = Path to folder holding OpenNLP models
+stanbol.opennlp.models.path.description = All OpenNLP files need to be in the 
same folder using \
+ the same naming convention as the OpenNLP project in version 1.5 and 
following.


Reply via email to