C# Class ABB.Swum.Nodes.WordNode

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

Méthodes publiques

Méthode 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 méthode

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

GetNewWord() public méthode

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.
Résultat WordNode

GetParse() public méthode

Returns a PhraseNode containing this WordNode.
public GetParse ( ) : PhraseNode
Résultat PhraseNode

IsAllCaps() public méthode

Reports whether the word is in all caps.
public IsAllCaps ( ) : bool
Résultat bool

Parse() public static méthode

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

ToPlainString() public méthode

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

ToString() public méthode

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

WordNode() public méthode

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
Résultat System

WordNode() public méthode

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.
Résultat System

WordNode() public méthode

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.
Résultat System

WordNode() public méthode

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.
Résultat System