Package org.apache.lucene.tests.analysis
Class TokenStreamToDot
java.lang.Object
org.apache.lucene.tests.analysis.TokenStreamToDot
Consumes a TokenStream and outputs the dot (graphviz) string (graph).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTokenStreamToDot
(String inputText, TokenStream in, PrintWriter out) If inputText is non-null, and the TokenStream has offsets, we include the surface form in each arc's label. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toDot()
protected void
protected void
Override to customize.protected void
protected void
Override to customize.
-
Field Details
-
out
-
-
Constructor Details
-
TokenStreamToDot
If inputText is non-null, and the TokenStream has offsets, we include the surface form in each arc's label.
-
-
Method Details
-
toDot
- Throws:
IOException
-
writeArc
-
writeNode
-
writeHeader
protected void writeHeader()Override to customize. -
writeTrailer
protected void writeTrailer()Override to customize.
-