C# 클래스 ABB.Swum.Nodes.WordNode

A node representing a single word.
상속: Node
파일 보기 프로젝트 열기: abb-iss/Swum.NET 1 사용 예제들

공개 메소드들

메소드 설명
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