public class FeatureVectorCacheFile extends Object implements Closeable, Iterator<Pair<SenseInstance,SenseStructure>>
Constructor and Description |
---|
FeatureVectorCacheFile(String file,
SenseManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
edu.illinois.cs.cogcomp.sl.core.StructuredProblem |
getStructuredProblem() |
edu.illinois.cs.cogcomp.sl.core.StructuredProblem |
getStructuredProblem(int sizeLimit) |
boolean |
hasNext() |
Pair<SenseInstance,SenseStructure> |
next() |
protected void |
openReader() |
void |
put(String lemma,
int label,
edu.illinois.cs.cogcomp.sl.util.FeatureVector features) |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public FeatureVectorCacheFile(String file, SenseManager manager) throws IOException
IOException
public void put(String lemma, int label, edu.illinois.cs.cogcomp.sl.util.FeatureVector features) throws Exception
Exception
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public Pair<SenseInstance,SenseStructure> next()
next
in interface Iterator<Pair<SenseInstance,SenseStructure>>
protected void openReader() throws IOException
IOException
public boolean hasNext()
hasNext
in interface Iterator<Pair<SenseInstance,SenseStructure>>
public void remove()
remove
in interface Iterator<Pair<SenseInstance,SenseStructure>>
public edu.illinois.cs.cogcomp.sl.core.StructuredProblem getStructuredProblem()
public edu.illinois.cs.cogcomp.sl.core.StructuredProblem getStructuredProblem(int sizeLimit)
Copyright © 2017. All rights reserved.