public class Charts extends Object implements ChartAttacher
computeCharts(de.up.ling.irtg.corpus.Corpus, de.up.ling.irtg.InterpretedTreeAutomaton, java.io.OutputStream)
to compute these parse charts for a given corpus and store them in a file.
You can then attach the charts in the file to a corpus using Corpus.attachCharts(java.lang.String)
.Constructor and Description |
---|
Charts(com.google.common.base.Supplier<InputStream> supplier) |
Modifier and Type | Method and Description |
---|---|
Iterator<Instance> |
attach(Iterator<Instance> source)
This method must accept an instance iterator and return another instance
iterator which only returns instances that are copies of the original with
charts attached.
|
static void |
computeCharts(Corpus corpus,
InterpretedTreeAutomaton irtg,
OutputStream ostream) |
static void |
computeCharts(Corpus corpus,
InterpretedTreeAutomaton irtg,
OutputStream ostream,
ProgressListener listener) |
public Charts(com.google.common.base.Supplier<InputStream> supplier)
public static void computeCharts(Corpus corpus, InterpretedTreeAutomaton irtg, OutputStream ostream) throws IOException
IOException
public static void computeCharts(Corpus corpus, InterpretedTreeAutomaton irtg, OutputStream ostream, ProgressListener listener) throws IOException
IOException
public Iterator<Instance> attach(Iterator<Instance> source)
ChartAttacher
attach
in interface ChartAttacher
Copyright © 2017. All rights reserved.