Package org.apache.incubator.uima.DictionaryMetaDataDocument

Examples of org.apache.incubator.uima.DictionaryMetaDataDocument.DictionaryMetaData


      DictionaryDocument.Dictionary dictionary = dictionaryDoc.getDictionary();

      // get type collection settings
      TypeCollectionDocument.TypeCollection typeCollection = dictionary
            .getTypeCollection();
      DictionaryMetaData dictMetaData = typeCollection.getDictionaryMetaData();
      boolean caseNormalization = true;
      boolean multiWordEntries = true;
      String multiWordSeparator = null;
      if (dictMetaData != null) {
         caseNormalization = dictMetaData.getCaseNormalization();
         multiWordEntries = dictMetaData.getMultiWordEntries();
         multiWordSeparator = dictMetaData.getMultiWordSeparator();
      }
      // get the dictionary language and the type name
      String language = typeCollection.getLanguageId();
      String typeName = typeCollection.getTypeDescription().getTypeName();
      // set dictionary properties
View Full Code Here

TOP

Related Classes of org.apache.incubator.uima.DictionaryMetaDataDocument.DictionaryMetaData

Copyright © 2018 www.massapicom. 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.