C# Class ABB.Swum.Nodes.WordNode

A node representing a single word.
Inheritance: Node
Mostra file Open project: abb-iss/Swum.NET Class Usage Examples

Public Methods

Method Description
GetNewWord ( ) : WordNode

Returns a new empty node of the same type.

GetNewWord ( string text, PartOfSpeechTag tag ) : WordNode

Returns a new node of the same type, containing the given text and part-of-speech tag.

GetParse ( ) : PhraseNode

Returns a PhraseNode containing this WordNode.

IsAllCaps ( ) : bool

Reports whether the word is in all caps.

Parse ( string source ) : WordNode

Creates a WordNode by parsing the given string representation.

ToPlainString ( ) : string

Returns the text of the word, with no added markup.

ToString ( ) : string

Converts the WordNode to a string representation, containing the text and part-of-speech.

WordNode ( ) : System

Creates a new WordNode with empty text. The part-of-speech is set to the default value of Unknown. The confidence is set to the default value of 0.0.

WordNode ( String text ) : System

Creates a new WordNode. The part-of-speech is set to the default value of Unknown. The confidence is set to the default value of 0.0.

WordNode ( String text, PartOfSpeechTag tag ) : System

Creates a new WordNode. The confidence is set to the default value of 0.0.

WordNode ( String text, PartOfSpeechTag tag, double confidence ) : System

Creates a new WordNode.

Method Details

GetNewWord() public method

Returns a new empty node of the same type.
public GetNewWord ( ) : WordNode
return WordNode

GetNewWord() public method

Returns a new node of the same type, containing the given text and part-of-speech tag.
public GetNewWord ( string text, PartOfSpeechTag tag ) : WordNode
text string The text of the new word.
tag PartOfSpeechTag the part-of-speech tag of the new word.
return WordNode

GetParse() public method

Returns a PhraseNode containing this WordNode.
public GetParse ( ) : PhraseNode
return PhraseNode

IsAllCaps() public method

Reports whether the word is in all caps.
public IsAllCaps ( ) : bool
return bool

Parse() public static method

Creates a WordNode by parsing the given string representation.
public static Parse ( string source ) : WordNode
source string The string to parse the WordNode from.
return WordNode

ToPlainString() public method

Returns the text of the word, with no added markup.
public ToPlainString ( ) : string
return string

ToString() public method

Converts the WordNode to a string representation, containing the text and part-of-speech.
public ToString ( ) : string
return string

WordNode() public method

Creates a new WordNode with empty text. The part-of-speech is set to the default value of Unknown. The confidence is set to the default value of 0.0.
public WordNode ( ) : System
return System

WordNode() public method

Creates a new WordNode. The part-of-speech is set to the default value of Unknown. The confidence is set to the default value of 0.0.
public WordNode ( String text ) : System
text String The actual text of the word.
return System

WordNode() public method

Creates a new WordNode. The confidence is set to the default value of 0.0.
public WordNode ( String text, PartOfSpeechTag tag ) : System
text String The actual text of the word.
tag PartOfSpeechTag The part-of-speech of the word.
return System

WordNode() public method

Creates a new WordNode.
public WordNode ( String text, PartOfSpeechTag tag, double confidence ) : System
text String The actual text of the word.
tag PartOfSpeechTag The part-of-speech of the word.
confidence double A rating of the confidence of the part-of-speech tagging for this word.
return System