Examples of DictionaryMetaData


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
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.