edu.stanford.nlp.parser.dvparser
Class CacheParseHypotheses
java.lang.Object
edu.stanford.nlp.parser.dvparser.CacheParseHypotheses
public class CacheParseHypotheses
- extends java.lang.Object
|
Method Summary |
java.util.IdentityHashMap<Tree,byte[]> |
convertToBytes(java.util.IdentityHashMap<Tree,java.util.List<Tree>> uncompressed)
|
byte[] |
convertToBytes(java.util.List<Tree> input)
|
static java.util.List<Tree> |
convertToTrees(byte[] input)
|
static java.util.IdentityHashMap<Tree,java.util.List<Tree>> |
convertToTrees(java.util.Collection<Tree> keys,
java.util.IdentityHashMap<Tree,byte[]> compressed,
int numThreads)
|
static java.util.IdentityHashMap<Tree,java.util.List<Tree>> |
convertToTrees(java.util.IdentityHashMap<Tree,byte[]> compressed,
int numThreads)
|
static void |
main(java.lang.String[] args)
An example of a command line is
java -mx1g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model /scr/horatio/dvparser/wsjPCFG.nocompact.simple.ser.gz -output cached9.simple.ser.gz -treebank /afs/ir/data/linguistic-data/Treebank/3/parsed/mrg/wsj 200-202
java -mx4g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model ~/scr/dvparser/wsjPCFG.nocompact.simple.ser.gz -output cached.train.simple.ser.gz -treebank /afs/ir/data/linguistic-data/Treebank/3/parsed/mrg/wsj 200-2199 -numThreads 6
java -mx4g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model ~/scr/dvparser/chinese/xinhuaPCFG.ser.gz -output cached.xinhua.train.ser.gz -treebank /afs/ir/data/linguistic-data/Chinese-Treebank/6/data/utf8/bracketed 026-270,301-499,600-999 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
treeFilter
public final Filter<Tree> treeFilter
CacheParseHypotheses
public CacheParseHypotheses(LexicalizedParser parser)
convertToBytes
public byte[] convertToBytes(java.util.List<Tree> input)
convertToBytes
public java.util.IdentityHashMap<Tree,byte[]> convertToBytes(java.util.IdentityHashMap<Tree,java.util.List<Tree>> uncompressed)
convertToTrees
public static java.util.List<Tree> convertToTrees(byte[] input)
convertToTrees
public static java.util.IdentityHashMap<Tree,java.util.List<Tree>> convertToTrees(java.util.IdentityHashMap<Tree,byte[]> compressed,
int numThreads)
convertToTrees
public static java.util.IdentityHashMap<Tree,java.util.List<Tree>> convertToTrees(java.util.Collection<Tree> keys,
java.util.IdentityHashMap<Tree,byte[]> compressed,
int numThreads)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- An example of a command line is
java -mx1g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model /scr/horatio/dvparser/wsjPCFG.nocompact.simple.ser.gz -output cached9.simple.ser.gz -treebank /afs/ir/data/linguistic-data/Treebank/3/parsed/mrg/wsj 200-202
java -mx4g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model ~/scr/dvparser/wsjPCFG.nocompact.simple.ser.gz -output cached.train.simple.ser.gz -treebank /afs/ir/data/linguistic-data/Treebank/3/parsed/mrg/wsj 200-2199 -numThreads 6
java -mx4g edu.stanford.nlp.parser.dvparser.CacheParseHypotheses -model ~/scr/dvparser/chinese/xinhuaPCFG.ser.gz -output cached.xinhua.train.ser.gz -treebank /afs/ir/data/linguistic-data/Chinese-Treebank/6/data/utf8/bracketed 026-270,301-499,600-999
- Throws:
java.io.IOException
Stanford NLP Group