lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrUIMA" by TommasoTeofili
Date Wed, 09 Mar 2011 09:37:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrUIMA" page has been changed by TommasoTeofili.
http://wiki.apache.org/solr/SolrUIMA?action=diff&rev1=12&rev2=13

--------------------------------------------------

  === Using other UIMA components ===
  To use different UIMA components inside the contrib/uima module you need to:
   1. import the component jar
-  2. use a new descriptor inside config/uimaConfig/analysisEngine element of solrconfig.xml
+  2. use the new component Analysis Engine descriptor inside config/uimaConfig/analysisEngine
element of solrconfig.xml
-  3. optionally adjust Analysis Engine configuration
+  3. adjust Analysis Engine configuration (optional)
   3. change the types and features' mapping inside config/uimaConfig/fieldMapping element
of solrconfig.xml
  
  ==== Import the component jar ====
@@ -110, +110 @@

  
  ==== Adjust AE configuration (optional) ====
  
+ Sometimes Analysis Engines require custom parameters to be set inside their descriptor or
custom resources to be imported.
+ The easiest way to do so is to get a copy of such a descriptor, modify parameters/resources
as needed and put them inside a directory which gets included in the final jar (i.e.: solr/contrib/uima/src/main/resources/org/apache/uima
)
+ 
+ 
  ==== Change the types and features' mapping ====
  
+ Inside the solrconfig.xml go to config/uimaConfig/fieldMapping element and change <type>
element according to the annotations extracted by the used component.
  
+ For example if you're using the Dictionary Annotator and you want to put the dictionary
entry annotations found inside a 'lemmas' field you should configure the fieldMapping element
as following:
+ 
+ {{{
+ <config>
+   ...
+   <uimaConfig>
+   ...
+   <fieldMapping>
+     <type name="org.apache.uima.DictionaryEntry">
+       <map feature="coveredText" field="lemmas"/>
+     </type>
+   </fieldMapping>
+   ...
+   </uimaConfig>
+   ...
+ </config>
+ }}}
  
  
  

Mime
View raw message