Class BabelLexiconIterator
java.lang.Object
it.uniroma1.lcl.babelnet.iterators.BabelIterator<it.uniroma1.lcl.jlt.ling.Word>
it.uniroma1.lcl.babelnet.iterators.BabelLexiconIterator
- All Implemented Interfaces:
Iterator<it.uniroma1.lcl.jlt.ling.Word>
Iterator over
BabelNet's lexicon.- Author:
- vannella, navigli
-
Field Summary
Fields inherited from class BabelIterator
currentIndex, liveDocs, reader -
Constructor Summary
ConstructorsConstructorDescriptionBabelLexiconIterator(org.apache.lucene.search.IndexSearcher lexicon) Builds the iterator from the Lucene index searcher -
Method Summary
Methods inherited from class BabelIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
BabelLexiconIterator
public BabelLexiconIterator(org.apache.lucene.search.IndexSearcher lexicon) Builds the iterator from the Lucene index searcher- Parameters:
lexicon- the Lucene index searcher
-
-
Method Details
-
next
public it.uniroma1.lcl.jlt.ling.Word next() -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<it.uniroma1.lcl.jlt.ling.Word>- Overrides:
hasNextin classBabelIterator<it.uniroma1.lcl.jlt.ling.Word>
-