Examples of WordOccrrenceContextGenerator


Examples of edu.ucla.sspace.wordsi.WordOccrrenceContextGenerator

        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");
        CorpusReader<Document> reader = new SemEvalLexSubReader();
View Full Code Here

Examples of edu.ucla.sspace.wordsi.WordOccrrenceContextGenerator

    /**
     * {@inheritDoc}
     */
    protected ContextExtractor getExtractor() {
        // Create the new generator.
        ContextGenerator generator = new WordOccrrenceContextGenerator(
                basis, weighting, windowSize());
        return contextExtractorFromGenerator(generator);
    }
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.