Class TokenStreamToDot
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Inherited Members
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class TokenStreamToDot
Constructors
TokenStreamToDot(string, TokenStream, TextWriter)
If inputText is non-null, and the Lucene.Net.Analysis.TokenStream has offsets, we include the surface form in each arc's label.
Declaration
public TokenStreamToDot(string inputText, TokenStream @in, TextWriter @out)
Parameters
| Type | Name | Description |
|---|---|---|
| string | inputText | |
| TokenStream | in | |
| TextWriter | out |
Fields
m_out
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Declaration
protected readonly TextWriter m_out
Field Value
| Type | Description |
|---|---|
| TextWriter |
Methods
ToDot()
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Declaration
public virtual void ToDot()
WriteArc(int, int, string, string)
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Declaration
protected virtual void WriteArc(int fromNode, int toNode, string label, string style)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromNode | |
| int | toNode | |
| string | label | |
| string | style |
WriteHeader()
Override to customize.
Declaration
protected virtual void WriteHeader()
WriteNode(int, string)
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Declaration
protected virtual void WriteNode(int name, string label)
Parameters
| Type | Name | Description |
|---|---|---|
| int | name | |
| string | label |
WriteTrailer()
Override to customize.
Declaration
protected virtual void WriteTrailer()