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, waitforEachRemainingpublic FeatureVectorCacheFile(String file, SenseManager manager) throws IOException
IOExceptionpublic void put(String lemma, int label, edu.illinois.cs.cogcomp.sl.util.FeatureVector features) throws Exception
Exceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic Pair<SenseInstance,SenseStructure> next()
next in interface Iterator<Pair<SenseInstance,SenseStructure>>protected void openReader()
throws IOException
IOExceptionpublic 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.