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

This rule assumes that it is the last rule being applied, and is therefore the default rule for methods.
Наследование: BaseVerbRule
Показать файл Открыть проект

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

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

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

DefaultBaseVerbRule ( ) : System

Creates a new DefaultBaseVerbRule using default values for data sets.

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

Creates a new DefaultBaseVerbRule.

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

Creates a new DefaultBaseVerbRule.

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

Creates a new DefaultBaseVerbRule.

InClass ( ProgramElementNode node ) : bool

Determines whether the given node meets the conditions of this rule. Since this is a default rule, it returns True for any MethodDeclarationNode.

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

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

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

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

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

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( 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

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

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( 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

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

Creates a new DefaultBaseVerbRule.
public DefaultBaseVerbRule ( 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

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

Determines whether the given node meets the conditions of this rule. Since this is a default rule, it returns True for any MethodDeclarationNode.
public InClass ( ProgramElementNode node ) : bool
node ABB.Swum.Nodes.ProgramElementNode The node to test.
Результат bool