public class SgraphAmrOutputCodec extends OutputCodec<SGraph>
(u_1 / boy :ARG0-of (u_2 / want :ARG1 (u_3 / go :ARG0 u_1)))
The string representation generated by this output codec
can be used as inputs to an IRTG with a GraphAlgebra
,
or parsed by a IsiAmrInputCodec
.
For compatibility with the original AMR format, this codec
never prints source names into the string representation,
even if the s-graph still has sources. If you want the source
names, see SgraphAmrWithSourcesOutputCodec
.
Constructor and Description |
---|
SgraphAmrOutputCodec() |
Modifier and Type | Method and Description |
---|---|
void |
write(SGraph sgraph,
OutputStream ostream)
Writes a string representation of a given object to an output stream.
|
addOptions, asString, asStringSupplier, getAllOutputCodecs, getMetadata, getOption, getOutputCodecByExtension, getOutputCodecByName, getOutputCodecs, hasTrueOption
public void write(SGraph sgraph, OutputStream ostream) throws IOException, UnsupportedOperationException
OutputCodec
write
in class OutputCodec<SGraph>
IOException
- if something went wrong with I/OUnsupportedOperationException
- if a problem occurred in computing
the representation of the objectCopyright © 2017. All rights reserved.