Package ivory.core.exception

Examples of ivory.core.exception.ConfigurationException


      }

      LOG.info("Tokenizer: " + tokenizerClassName);
      tokenizer = (Tokenizer) Class.forName(tokenizerClassName).newInstance();
    } catch (Exception e) {
      throw new ConfigurationException("Error initializing tokenizer!");
    }

    LOG.info("Loading postings index...");
    postingsIndex = new IntPostingsForwardIndex(indexPath, fs);
    LOG.info(" - Number of terms: " + readCollectionTermCount());
    LOG.info("Done!");

    try {
      termidMap = new DefaultFrequencySortedDictionary(new Path(getIndexTermsData()),
          new Path(getIndexTermIdsData()), new Path(getIndexTermIdMappingData()), fs);
    } catch (Exception e) {
      throw new ConfigurationException("Error initializing dictionary!");
    }

    try {
      docvectorsIndex = new IntDocVectorsForwardIndex(indexPath, fs);
    } catch (Exception e) {
View Full Code Here


    docNode = null;

    for (GraphNode node : nodes) {
      if (node.getType().equals(GraphNode.Type.DOCUMENT) && docNode != null) {
        throw new ConfigurationException("Only one document node allowed in DocumentPotential!");
      } else if (node.getType().equals(GraphNode.Type.DOCUMENT)) {
        docNode = (DocumentNode) node;
      } else if (node.getType().equals(GraphNode.Type.TERM)) {
        throw new ConfigurationException("TermNodes are not allowed in DocumentPotential!");
      }
    }
  }
View Full Code Here

      PotentialFunction f = clz.newInstance();
      f.configure(env, functionNode);

      return f;
    } catch (Exception e) {
      throw new ConfigurationException(
          "Unable to instantiate scoring function \"" + type + "\"!", e);
    }
  }
View Full Code Here

TOP

Related Classes of ivory.core.exception.ConfigurationException

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.