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();
Iterator<Document> docIter = reader.read(new File(args[1]));
while (docIter.hasNext())
extractor.processDocument(docIter.next().reader(), wordsi);
}