C# Класс ABB.Swum.Tagger

Assigns part-of-speech tags to the words in an identifier.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
PreTag ( ProgramElementNode node ) : void

Performs various actions that should occur prior to further tagging. This method tags any digits in the name, identifies and removes any preamble, and tags any prepositions remaining in the name.

TagNounPhrase ( PhraseNode nounPhrase ) : void

Assigns part-of-speech tags to the word nodes in the given phrase, assuming it is a noun phrase.

TagNounPhrase ( PhraseNode nounPhrase, int startIndex, int stopIndex ) : void

Assigns part-of-speech tags to the word nodes in the given phrase, assuming it is a noun phrase. Only the words between startIndex and stopIndex, inclusive, are tagged.

TagType ( PhraseNode parsedName ) : void

Assigns part-of-speech tags to the word nodes in the given type name.

TagVariableName ( PhraseNode parsedName ) : void

Assigns part-of-speech tags to the word nodes in the given variable name.

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

PreTag() публичный абстрактный метод

Performs various actions that should occur prior to further tagging. This method tags any digits in the name, identifies and removes any preamble, and tags any prepositions remaining in the name.
public abstract PreTag ( ProgramElementNode node ) : void
node ABB.Swum.Nodes.ProgramElementNode The node to be tagged.
Результат void

TagNounPhrase() публичный абстрактный метод

Assigns part-of-speech tags to the word nodes in the given phrase, assuming it is a noun phrase.
public abstract TagNounPhrase ( PhraseNode nounPhrase ) : void
nounPhrase ABB.Swum.Nodes.PhraseNode The noun phrase to tag.
Результат void

TagNounPhrase() публичный абстрактный метод

Assigns part-of-speech tags to the word nodes in the given phrase, assuming it is a noun phrase. Only the words between startIndex and stopIndex, inclusive, are tagged.
public abstract TagNounPhrase ( PhraseNode nounPhrase, int startIndex, int stopIndex ) : void
nounPhrase ABB.Swum.Nodes.PhraseNode The noun phrase to tag.
startIndex int The index of the first word to tag.
stopIndex int The index of the last word to tag.
Результат void

TagType() публичный абстрактный метод

Assigns part-of-speech tags to the word nodes in the given type name.
public abstract TagType ( PhraseNode parsedName ) : void
parsedName ABB.Swum.Nodes.PhraseNode The parsed type name to tag.
Результат void

TagVariableName() публичный абстрактный метод

Assigns part-of-speech tags to the word nodes in the given variable name.
public abstract TagVariableName ( PhraseNode parsedName ) : void
parsedName ABB.Swum.Nodes.PhraseNode The parsed variable name to tag.
Результат void