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

The rule to construct SWUM for methods whose names follow the base verb pattern. Base Verb -> V (VP|VM)? (DT|NM)* N?
Наследование: UnigramMethodRule
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BaseVerbRule ( ) : System

Creates a new BaseVerbRule using default values for data sets.

BaseVerbRule ( HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System

Creates a new BaseVerbRule.

BaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter ) : System

Creates a new BaseVerbRule.

BaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter, HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System

Creates a new BaseVerbRule.

ConstructSwum ( ProgramElementNode node ) : void

Constructs the SWUM for the given node, using this rule.

Защищенные методы

Метод Описание
MakeClassification ( MethodDeclarationNode node ) : bool

Determines whether the given MethodDeclarationNode meets the conditions for this rule.

Приватные методы

Метод Описание
DetermineMethodRole ( MethodDeclarationNode mdn ) : void

Sets the Role on the given MethodDeclarationNode based on its name.

IsPrepositionalPhrase ( PhraseNode parsedName ) : bool

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

BaseVerbRule() публичный метод

Creates a new BaseVerbRule using default values for data sets.
public BaseVerbRule ( ) : System
Результат System

BaseVerbRule() публичный метод

Creates a new BaseVerbRule.
public BaseVerbRule ( HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System
specialWords HashSet A list of words that indicate the method name needs special handling.
booleanArgumentVerbs HashSet A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list.
nounPhraseIndicators HashSet A list of word that indicate that beginning of a noun phrase.
positionalFrequencies ABB.Swum.WordData.PositionalFrequencies Positional frequency data.
Результат System

BaseVerbRule() публичный метод

Creates a new BaseVerbRule.
public BaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter ) : System
posData ABB.Swum.WordData.PartOfSpeechData The part-of-speech data to use.
tagger Tagger The part-of-speech tagger to use.
splitter IdSplitter The identifier splitter to use.
Результат System

BaseVerbRule() публичный метод

Creates a new BaseVerbRule.
public BaseVerbRule ( PartOfSpeechData posData, Tagger tagger, IdSplitter splitter, HashSet specialWords, HashSet booleanArgumentVerbs, HashSet nounPhraseIndicators, PositionalFrequencies positionalFrequencies ) : System
posData ABB.Swum.WordData.PartOfSpeechData The part-of-speech data to use.
tagger Tagger The part-of-speech tagger to use.
splitter IdSplitter The identifier splitter to use.
specialWords HashSet A list of words that indicate the method name needs special handling.
booleanArgumentVerbs HashSet A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list.
nounPhraseIndicators HashSet A list of word that indicate that beginning of a noun phrase.
positionalFrequencies ABB.Swum.WordData.PositionalFrequencies Positional frequency data.
Результат System

ConstructSwum() публичный метод

Constructs the SWUM for the given node, using this rule.
public ConstructSwum ( ProgramElementNode node ) : void
node ABB.Swum.Nodes.ProgramElementNode The node to construct SWUM for.
Результат void

MakeClassification() защищенный метод

Determines whether the given MethodDeclarationNode meets the conditions for this rule.
protected MakeClassification ( MethodDeclarationNode node ) : bool
node ABB.Swum.Nodes.MethodDeclarationNode The MethodDeclarationNode to test.
Результат bool