Package edu.ucla.sspace.wordsi

Examples of edu.ucla.sspace.wordsi.ContextGenerator


  /**
   * {@inheritDoc}
   */
  protected ContextExtractor getExtractor() {
    // Create the new context generator.
    ContextGenerator generator = new RandomIndexingContextGenerator(
        indexMap, permFunction, indexVectorLength);
    return contextExtractorFromGenerator(generator);
  }
View Full Code Here


        System.err.println("Loading basis mapping and extractor.");
        BasisMapping<String, String> basis =
            SerializableUtil.load(new File(args[2]));
        basis.setReadOnly(true);
        ContextGenerator generator =
            new WordOccrrenceContextGenerator(basis, new LinearWeighting(), 25);
        ContextExtractor extractor =
            new SemEvalContextExtractor(generator, 25);

        System.out.println("Processing contexts");
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected ContextExtractor getExtractor() {
        // Create the new generator.
        ContextGenerator generator = new WordOccrrenceContextGenerator(
                basis, weighting, windowSize());
        return contextExtractorFromGenerator(generator);
    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.wordsi.ContextGenerator

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.