Examples of DictionaryEngine


Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

         throws AnnotatorContextException, ResourceAccessException {
      final Map<String,DictionaryEngine> m = new HashMap<>();
      final List<Element> dictatteerChildren = dictetteersEl.getChildren();
      for ( Element dictEl : dictatteerChildren ) {
         final String id = dictEl.getAttributeValue( "id" );
         final DictionaryEngine dictEngine = LookupParseUtilitiesRefactor.parseDictionaryXml( aContext, dictEl );
         m.put( id, dictEngine );
      }
      return m;
   }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

      } catch ( NullPointerException npE ) {
         // thrown all over this method ...
         throw new ResourceAccessException( npE );
      }
      final boolean keepCase = Boolean.parseBoolean( rootDictEl.getAttributeValue( "caseSensitive" ) );
      final DictionaryEngine dictEngine = new DictionaryEngine( dict, keepCase );
      final Element excludeList = rootDictEl.getChild( "excludeList" );
      if ( excludeList != null && excludeList.getChildren() != null && !excludeList.getChildren().isEmpty() ) {
         addExcludeList( dictEngine, excludeList.getChildren() );
      }
      return dictEngine;
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

      final List<Element> bindingChildren = lookupBindingsEl.getChildren();
      try {
         for ( Element bindingEl : bindingChildren ) {
            final Element dictEl = bindingEl.getChild( "dictionaryRef" );
            final String dictID = dictEl.getAttributeValue( "idRef" );
            final DictionaryEngine dictEngine = dictMap.get( dictID );
            if ( dictEngine == null ) {
               throw new AnnotatorContextException( "Dictionary undefined: " + dictID, null );
            }

            final Element lookupInitEl = bindingEl.getChild( "lookupInitializer" );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

    Iterator<?> dictItr = dictetteersEl.getChildren().iterator();
    while (dictItr.hasNext())
    {
      Element dictEl = (Element) dictItr.next();
      String id = dictEl.getAttributeValue("id");
      DictionaryEngine dictEngine = LookupParseUtilities.parseDictionaryXml(
          aContext,
          dictEl);
      m.put(id, dictEngine);
    }
    return m;
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

      Element metaFieldEl = (Element) metaFieldItr.next();
      String metaFieldName = metaFieldEl.getAttributeValue("fieldName");
      dict.retainMetaData(metaFieldName);
    }

    DictionaryEngine dictEngine = new DictionaryEngine(dict, keepCase.booleanValue());

      Element excludeList = rootDictEl.getChild("excludeList");
     
      if (excludeList != null && excludeList.getChildren() != null && excludeList.getChildren().size() > 0) {
        addExcludeList(dictEngine, excludeList.getChildren().iterator());
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

    {
      Element bindingEl = (Element) itr.next();

      Element dictEl = bindingEl.getChild("dictionaryRef");
      String dictID = dictEl.getAttributeValue("idRef");
      DictionaryEngine dictEngine = dictMap.get(dictID);
      if (dictEngine == null)
      {
        throw new Exception("Dictionary undefined: " + dictID);
      }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

    Iterator dictItr = dictetteersEl.getChildren().iterator();
    while (dictItr.hasNext())
    {
      Element dictEl = (Element) dictItr.next();
      String id = dictEl.getAttributeValue("id");
      DictionaryEngine dictEngine = LookupParseUtilities.parseDictionaryXml(
          aContext,
          dictEl);
      m.put(id, dictEngine);
    }
    return m;
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

      Element metaFieldEl = (Element) metaFieldItr.next();
      String metaFieldName = metaFieldEl.getAttributeValue("fieldName");
      dict.retainMetaData(metaFieldName);
    }

    DictionaryEngine dictEngine = new DictionaryEngine(dict, keepCase.booleanValue());

      Element excludeList = rootDictEl.getChild("excludeList");
     
      if (excludeList != null && excludeList.getChildren() != null && excludeList.getChildren().size() > 0) {
        addExcludeList(dictEngine, excludeList.getChildren().iterator());
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

    {
      Element bindingEl = (Element) itr.next();

      Element dictEl = bindingEl.getChild("dictionaryRef");
      String dictID = dictEl.getAttributeValue("idRef");
      DictionaryEngine dictEngine = (DictionaryEngine) dictMap.get(dictID);
      if (dictEngine == null)
      {
        throw new Exception("Dictionary undefined: " + dictID);
      }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.DictionaryEngine

         throws AnnotatorContextException, ResourceAccessException {
      final Map<String,DictionaryEngine> m = new HashMap<String,DictionaryEngine>();
      final List<Element> dictatteerChildren = dictetteersEl.getChildren();
      for ( Element dictEl : dictatteerChildren ) {
         final String id = dictEl.getAttributeValue( "id" );
         final DictionaryEngine dictEngine = LookupParseUtilitiesRefactor.parseDictionaryXml( aContext, dictEl );
         m.put( id, dictEngine );
      }
      return m;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.