C# Класс ABB.Swum.Nodes.WordNode

A node representing a single word.
Наследование: Node
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetNewWord() публичный Метод

Returns a new empty node of the same type.
public GetNewWord ( ) : WordNode
Результат WordNode

GetNewWord() публичный Метод

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.
Результат WordNode

GetParse() публичный Метод

Returns a PhraseNode containing this WordNode.
public GetParse ( ) : PhraseNode
Результат PhraseNode

IsAllCaps() публичный Метод

Reports whether the word is in all caps.
public IsAllCaps ( ) : bool
Результат bool

Parse() публичный статический Метод

Creates a WordNode by parsing the given string representation.
public static Parse ( string source ) : WordNode
source string The string to parse the WordNode from.
Результат WordNode

ToPlainString() публичный Метод

Returns the text of the word, with no added markup.
public ToPlainString ( ) : string
Результат string

ToString() публичный Метод

Converts the WordNode to a string representation, containing the text and part-of-speech.
public ToString ( ) : string
Результат string

WordNode() публичный Метод

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
Результат System

WordNode() публичный Метод

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.
Результат System

WordNode() публичный Метод

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.
Результат System

WordNode() публичный Метод

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.
Результат System