uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <peter...@gmail.com>
Subject Setting UIMA ConceptMapper dictionary from aggregate AE
Date Tue, 29 Oct 2013 08:49:42 GMT
Hi UIMA users,

I'm trying to set UIMA ConceptMapper dictionary (external resource) from
aggregate AE, but ConceptMapper ignores it.

This is what I have in primitive AE (ConceptMapperOffsetTokenizer.xml):
  <externalResourceDependencies>
    <externalResourceDependency>
      <key>*DictionaryFile*</key>
      <description>dictionary file loader.</description>

<interfaceName>org.apache.uima.conceptMapper.support.dictionaryResource.DictionaryResource</interfaceName>
      <optional>false</optional>
    </externalResourceDependency>
  </externalResourceDependencies>
  <resourceManagerConfiguration>
    <externalResources>
      <externalResource>
        <name>*DictionaryFileName*</name>
        <description>A file containing the dictionary. Modify this URL to
use a different dictionary.</description>
        <fileResourceSpecifier>
          <fileUrl>*file:ConceptMapperDictionaries/dictionary1.xml*
</fileUrl>
        </fileResourceSpecifier>

<implementationName>org.apache.uima.conceptMapper.support.dictionaryResource.DictionaryResource_impl</implementationName>
      </externalResource>
    </externalResources>
    <externalResourceBindings>
      <externalResourceBinding>
        <key>*DictionaryFile*</key>
        <resourceName>*DictionaryFileName*</resourceName>
      </externalResourceBinding>
    </externalResourceBindings>
  </resourceManagerConfiguration>


In aggregate AE (OffsetTokenizerMatcher.xml) I have the following:
<resourceManagerConfiguration>
    <externalResources>
      <externalResource>
        <name>*DicionaryFileName*</name>
        <description/>
        <fileResourceSpecifier>
          <fileUrl>file:ConceptMapperDictionaries/dictionary2.xml</fileUrl>
        </fileResourceSpecifier>

<implementationName>org.apache.uima.conceptMapper.support.dictionaryResource.DictionaryResource_impl</implementationName>
      </externalResource>
    </externalResources>
    <externalResourceBindings>
      <externalResourceBinding>
        <key>*ConceptMapper/DictionaryFile*</key>
        <resourceName>*DicionaryFileName*</resourceName>
      </externalResourceBinding>
    </externalResourceBindings>
  </resourceManagerConfiguration>

What could be the problem for ConceptMapper, that it ignores the external
resource (file:ConceptMapperDictionaries/dictionary2.xml) set by aggregate
AE?

P.S. When trying an example from UIMA documentation
(tutorial/ex6/UimaMeetingDetectorTAE.xml) the external resource specified
in aggregate AE is taken into account.

Best regards,
Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message