C# Class SolarixGrammarEngineNET.GrammarEngine

Datei anzeigen Open project: Koziev/GrammarEngine

Public Methods

Method Description
NormalizePhraseFX ( IntPtr hEngine, IntPtr hLinkages ) : string
sol_CountNGramsFX ( IntPtr hEngine, int Type, int Order ) : System.UInt64
sol_GenerateWordformsFX ( HGREN hEngine, int EntryID, System CoordID, System StateID ) : System.Collections.ArrayList
sol_GetClassNameFX ( IntPtr hEngine, int ClassIndex ) : string
sol_GetCoordNameFX ( IntPtr hEngine, int coordID ) : string
sol_GetCoordStateNameFX ( IntPtr hEngine, int coordID, int stateID ) : string
sol_GetEntryNameFX ( IntPtr hEngine, int entryId ) : string

Получение названия словарной статьи (обычно это нормальная, словарная форма слова) с указанным ID.

sol_GetErrorFX ( IntPtr hEngine ) : string
sol_GetFetchedSentenceFX ( System hBroker ) : string

Получение очередного предложения от сегментатора текста.

sol_GetFlexionHandlerWordformFX ( IntPtr hEngine, IntPtr hFlex, string dims ) : string
sol_GetLongStringFX ( System hString ) : string
sol_GetNodeContentsFX ( IntPtr hNode ) : string
sol_GetNodeMarkNameFX ( System hNode, int mark_index ) : string
sol_GetPhraseTextFX ( IntPtr hEngine, int PhraseId ) : string
sol_GetStringFX ( IntPtr hToks, int i ) : string
sol_GetVersionFX ( IntPtr hEngine ) : string

Получение строки с номером версии грамматического движка в виде "XX.YY.ZZ битность"

sol_LinksInfoFlagsTxtFX ( IntPtr hEngine, IntPtr hList, int Index ) : string
sol_LinksInfoTagsTxtFX ( IntPtr hEngine, IntPtr hList, int Index ) : string
sol_ListEntriesFX ( IntPtr hEngine, int Flags, int EntryType, string Mask, int Language, int Class ) : int[]
sol_RestoreCasingFX ( IntPtr hEngine, string Word, int id_entry ) : string
sol_SeekThesaurusFX ( IntPtr hEngine, int EntryID, bool Synonyms, bool Grammar_Links, bool Translation, bool Semantics, int nJumps ) : int[]
sol_TokenizeFX ( IntPtr hEngine, string Text, int LanguageID ) : string[]

Private Methods

Method Description
sol_AddLink ( IntPtr hEng, int LinkType, int IE1, int LinkCode, int IE2, string Tags ) : int
sol_AddPhrase ( IntPtr hEng, string Phrase, int LanguageID, int ClassID, int ProcessingFlags ) : int
sol_AddWord ( IntPtr hEng, string Txt ) : int
sol_Bits ( ) : int
sol_BuildFlexionHandler ( IntPtr hEngine, IntPtr hFlexs, string ParadigmaName, int EntryIndex ) : IntPtr
sol_ClearError ( IntPtr hEngine ) : int
sol_CloseCorpusStorage ( HGREN hEngine, IntPtr hStream ) : int
sol_CorrAdjNumber ( HGREN hEngine, int EntryIndex, int Value, int Case, int Gender, int Anim, System Result ) : int
sol_CorrNounNumber ( HGREN hEngine, int EntryIndex, int Value, int Case, int Anim, System Result ) : int
sol_CorrVerbNumber ( HGREN hEngine, int EntryIndex, int Value, int Gender, int Tense, System Result ) : int
sol_CountCoordStates ( System h, int CoordID ) : int
sol_CountEntries ( HGREN hEngine ) : int
sol_CountEntriesInFlexionHandlers ( IntPtr hEngine, IntPtr hFlexs ) : int
sol_CountForms ( HGREN hEngine ) : int
sol_CountGrafs ( System hPack ) : int
sol_CountInts ( System hInts ) : int
sol_CountLeafs ( System hNode ) : int
sol_CountLinks ( HGREN hEngine ) : int
sol_CountNGrams ( HGREN hEngine, int Type, int Order, UInt32 &Hi, UInt32 &Lo ) : int
sol_CountNodeMarks ( System hNode ) : int
sol_CountParadigmasInFlexionHandlers ( IntPtr hEngine, IntPtr hFlexs ) : int
sol_CountProjections ( System hList ) : int
sol_CountRoots ( System hPack, int iGraf ) : int
sol_CountStrings ( System hStr ) : int
sol_CreateGrammarEngineExW ( string dictConfigPath, EngineInstanceFlags instanceFlags ) : HGREN
sol_CreateGrammarEngineW ( string dictConfigPath ) : HGREN
sol_CreateSentenceBroker ( HGREN hEngine, string Filename, string DefaultCodepage, int language ) : IntPtr
sol_CreateSentenceBrokerMemW ( HGREN hEngine, string Text, int language ) : IntPtr
sol_DeleteFlexionHandler ( IntPtr hEngine, IntPtr hFlex ) : int
sol_DeleteFlexionHandlers ( IntPtr hEngine, IntPtr hFlexs ) : int
sol_DeleteGrammarEngine ( HGREN hEngine ) : int
sol_DeleteInts ( System hInts ) : void
sol_DeleteLink ( IntPtr hEng, int LinkID, int LinkType ) : int
sol_DeleteLinksInfo ( IntPtr hEng, IntPtr hList ) : int
sol_DeleteLongString ( System hString ) : int
sol_DeletePhrase ( IntPtr hEngine, int PhraseId ) : int
sol_DeleteProjections ( System hList ) : void
sol_DeleteResPack ( System hPack ) : void
sol_DeleteSentenceBroker ( System hBroker ) : void
sol_DeleteStrings ( System hStr ) : int
sol_DictionaryVersion ( HGREN hEngine ) : int
sol_EnumInClass ( HGREN hEngine, int partOfSpeechId, int attributeId ) : int
sol_FetchSentence ( System hBroker ) : int
sol_FindClass ( HGREN hEngine, string partOfSpeechName ) : int
sol_FindEntry ( HGREN hEngine, string name, int partOfSpeechId, int languageId ) : int
sol_FindEntryCoordPair ( HGREN hEngine, int EntryID, int CategoryID, int StateID ) : int
sol_FindEnum ( HGREN hEngine, string attributeName ) : int
sol_FindEnumState ( HGREN hEngine, int attributeId, string stateName ) : int
sol_FindFlexionHandlers ( IntPtr hEnging, string WordBasicForm, int SearchEntries ) : IntPtr
sol_FindLanguage ( IntPtr hEng, string LanguageName ) : int
sol_FindPhrase ( IntPtr hEng, string Phrase, int Flags ) : int
sol_FindStringsEx ( HGREN hEngine, String name, int Allow_Dynforms, int Synonyms, int Grammar_Links, int Translations, int Semantics, int nJumps ) : IntPtr
sol_FindTagValueW ( HGREN hEngine, int tagID, string valueName ) : int
sol_FindTagW ( HGREN hEngine, string tagName ) : int
sol_FindWord ( HGREN hEngine, string Word, System EntryIndex, System Form, System Class ) : int
sol_Free ( IntPtr hEngine, IntPtr ptr ) : int
sol_FreeSyntaxTree ( IntPtr hTree ) : int
sol_GenerateWordforms ( HGREN hEngine, int EntryID, int npairs, [ SizeParamIndex = 2)]int[]pairs ) : IntPtr
sol_GetAdjectiveForm ( HGREN hEngine, int EntryIndex, int Number, int Gender, int Case, int Anim, int Shortness, int Compar_Form, System Result ) : int
sol_GetClassName ( HGREN hEngine, int ClassIndex, System Result ) : int
sol_GetCoordName ( HGREN hEngine, int CoordID, System Result ) : int
sol_GetCoordStateName ( HGREN hEngine, int CoordID, int StateID, System Result ) : int
sol_GetCoordType ( HGREN hEngine, int CoordID, int PartOfSpeechID ) : int
sol_GetEntryClass ( HGREN hEngine, int EntryID ) : int
sol_GetEntryCoordState ( HGREN hEngine, int EntryID, int CategoryID ) : int
sol_GetEntryInFlexionHandlers ( IntPtr hEngine, IntPtr hFlexs, int Index ) : int
sol_GetEntryName ( HGREN hEngine, int EntryID, System Result ) : int
sol_GetError ( IntPtr hEngine, System buffer, int buffer_len ) : int
sol_GetErrorLen ( IntPtr hEngine ) : int
sol_GetFetchedSentence ( System hBroker, System Buffer ) : int
sol_GetFetchedSentenceLen ( System hBroker ) : int
sol_GetFlexionHandlerWordform ( IntPtr hEngine, IntPtr hFlex, string dims ) : IntPtr
sol_GetIEntry ( System hList, int Index ) : int
sol_GetInt ( System hInts, int i ) : int
sol_GetLeaf ( System hNode, int iLeaf ) : IntPtr
sol_GetLeafLinkType ( System hNode, int iLeaf ) : int
sol_GetLongStringLenW ( System hString ) : int
sol_GetLongStringW ( System hString, System buffer ) : int
sol_GetNodeContents ( System hNode, System Result ) : void
sol_GetNodeCoordPair ( System hNode, int CoordID, int StateID ) : int
sol_GetNodeCoordState ( System hNode, int CoordID ) : int
sol_GetNodeIEntry ( HGREN hEngine, System hNode ) : int
sol_GetNodeMarkNameW ( System hNode, int mark_index, System name_buffer ) : int
sol_GetNodePairCoord ( System hNode, int ipair ) : int
sol_GetNodePairState ( System hNode, int ipair ) : int
sol_GetNodePairsCount ( System hNode ) : int
sol_GetNodePosition ( System hNode ) : int
sol_GetNodeVerCoordPair ( System hNode, int iver, int CoordID, int StateID ) : int
sol_GetNodeVerCoordState ( System hNode, int iver, int CoordID ) : int
sol_GetNodeVerIEntry ( IntPtr hEngine, IntPtr hNode, int ialt ) : int
sol_GetNodeVerPairCoord ( System hNode, int iver, int ipair ) : int
sol_GetNodeVerPairState ( System hNode, int iver, int ipair ) : int
sol_GetNodeVerPairsCount ( System hNode, int iver ) : int
sol_GetNodeVersionCount ( HGREN hEngine, System hNode ) : int
sol_GetNounForm ( HGREN hEngine, int EntryIndex, int Number, int Case, System Result ) : int
sol_GetNounGender ( System hStr, int EntryIndex ) : int
sol_GetParadigmaInFlexionHandlers ( IntPtr hEngine, IntPtr hFlexs, int Index, System ParadigmaName ) : int
sol_GetPhraseClass ( IntPtr hEng, int PhraseId ) : int
sol_GetPhraseLanguage ( IntPtr hEng, int PhraseId ) : int
sol_GetPhraseText ( IntPtr hEng, int PhraseId ) : IntPtr
sol_GetProjCoordState ( HGREN hEngine, System hList, int Index, int Coord ) : int
sol_GetRoot ( System hPack, int iGraf, int iRoot ) : IntPtr
sol_GetSentenceW ( IntPtr hData ) : string
sol_GetStringLen ( System hStr, int i ) : int
sol_GetStringW ( System hStr, int i, System buffer ) : int
sol_GetTreeHandle ( IntPtr hData ) : IntPtr
sol_GetVerbForm ( HGREN hEngine, int EntryIndex, int Number, int Gender, int Tense, int Person, System Result ) : int
sol_GetVersion ( HGREN hEngine, int &majorNumber, int &minorNumber, int &buildNumber ) : int
sol_LinksInfoCount ( IntPtr hEng, IntPtr hList ) : int
sol_LinksInfoEKey1 ( IntPtr hEng, IntPtr hList, int Index ) : int
sol_LinksInfoEKey2 ( IntPtr hEng, IntPtr hList, int Index ) : int
sol_LinksInfoFlagsTxt ( IntPtr hEng, IntPtr hList, int Index ) : IntPtr
sol_LinksInfoID ( IntPtr hEng, IntPtr hList, int Index ) : int
sol_LinksInfoTagsTxt ( IntPtr hEng, IntPtr hList, int Index ) : IntPtr
sol_LinksInfoType ( IntPtr hEng, IntPtr hList, int Index ) : int
sol_ListEntries ( IntPtr hEngine, int Flags, int EntryType, string Mask, int Language, int PartOfSpeech ) : IntPtr
sol_ListEntryForms ( IntPtr hEngine, int EntryKey ) : IntPtr
sol_ListLinksTxt ( IntPtr hEng, int Key1, int LinkType, int Flags ) : IntPtr
sol_LoadDictionaryExW ( HGREN hEngine, System dictPath, EngineInstanceFlags flags ) : int
sol_LoadDictionaryW ( HGREN hEngine, System dictPath ) : int
sol_LoadSyntaxTree ( HGREN hEngine, IntPtr hStream ) : IntPtr
sol_MaxLexemLen ( HGREN hEngine ) : int
sol_MorphologyAnalysis ( IntPtr hEngine, string sentence, MorphologyFlags flags, SyntaxFlags unusedFlags, int constraints, int languageId ) : IntPtr
sol_NormalizePhraseW ( IntPtr hEng, IntPtr hLinkages ) : IntPtr
sol_OpenCorpusStorage8 ( HGREN hEngine, string Filename, bool for_writing ) : IntPtr
sol_ProcessPhraseEntry ( IntPtr hEngine, int PhraseId, string Scenario, int Language, char DelimiterChar ) : int
sol_ProjectMisspelledWord ( HGREN hEngine, string Word, int AllowDynforms, int nmaxmiss ) : IntPtr
sol_ProjectWord ( HGREN hEngine, string Word, int AllowDynforms ) : IntPtr
sol_ReserveLexiconSpace ( IntPtr hEngine, int n ) : int
sol_RestoreCasing ( IntPtr hEngine, [ Word, int EntryIndex ) : int
sol_SaveDictionary ( IntPtr hEngine, int Flags, string Folder ) : int
sol_Seek1Grams ( IntPtr hEngine, int Type, String word1 ) : int
sol_Seek2Grams ( IntPtr hEngine, int Type, String word1, String word2 ) : int
sol_Seek3Grams ( IntPtr hEngine, int Type, String word1, String word2, String word3 ) : int
sol_Seek4Grams ( IntPtr hEngine, int Type, String word1, String word2, String word3, String word4 ) : int
sol_Seek5Grams ( IntPtr hEngine, int Type, String word1, String word2, String word3, String word4, String word5 ) : int
sol_SeekThesaurus ( IntPtr hEngine, int EntryIndex, int Synonyms, int Grammar_Links, int Translation, int Semantics, int nJumps ) : IntPtr
sol_SeekWord ( HGREN hEngine, string Word, int Allow_Dynforms ) : int
sol_SerializeNodeMark ( System hEngine, System hNode, int mark_index, int format ) : IntPtr
sol_SetLanguage ( HGREN hEngine, int LanguageID ) : void
sol_SetLinkFlags ( IntPtr hEngine, int id_link, string Flags ) : int
sol_SetLinkTags ( IntPtr hEngine, int LinkType, int id_link, string Tags ) : int
sol_SetPhraseNote ( IntPtr hEngine, int te_id, string Name, string Value ) : int
sol_Stemmer ( HGREN hEngine, string Word ) : int
sol_Syllabs ( IntPtr hEngine, string OrgWord, char SyllabDelimiter, System Result, int LanguageID ) : int
sol_SyntaxAnalysis ( HGREN hEngine, string sentence, MorphologyFlags flags, SyntaxFlags unusedFlags, int constraints, int languageID ) : IntPtr
sol_TokenizeW ( HGREN hEngine, string Text, int language ) : IntPtr
sol_TranslateToBases ( HGREN hEngine, string Word, int AllowDynforms ) : IntPtr
sol_TranslateToInfinitive ( HGREN hEngine, int EntryIndex ) : int
sol_TranslateToNoun ( HGREN hEngine, int EntryIndex ) : int
sol_WriteSyntaxTree ( HGREN hEngine, IntPtr hStream, string Sentence, IntPtr hTree ) : int

Method Details

NormalizePhraseFX() public static method

public static NormalizePhraseFX ( IntPtr hEngine, IntPtr hLinkages ) : string
hEngine System.IntPtr
hLinkages System.IntPtr
return string

sol_CountNGramsFX() public static method

public static sol_CountNGramsFX ( IntPtr hEngine, int Type, int Order ) : System.UInt64
hEngine System.IntPtr
Type int
Order int
return System.UInt64

sol_GenerateWordformsFX() public static method

public static sol_GenerateWordformsFX ( HGREN hEngine, int EntryID, System CoordID, System StateID ) : System.Collections.ArrayList
hEngine HGREN
EntryID int
CoordID System
StateID System
return System.Collections.ArrayList

sol_GetClassNameFX() public static method

public static sol_GetClassNameFX ( IntPtr hEngine, int ClassIndex ) : string
hEngine System.IntPtr
ClassIndex int
return string

sol_GetCoordNameFX() public static method

public static sol_GetCoordNameFX ( IntPtr hEngine, int coordID ) : string
hEngine System.IntPtr
coordID int
return string

sol_GetCoordStateNameFX() public static method

public static sol_GetCoordStateNameFX ( IntPtr hEngine, int coordID, int stateID ) : string
hEngine System.IntPtr
coordID int
stateID int
return string

sol_GetEntryNameFX() public static method

Получение названия словарной статьи (обычно это нормальная, словарная форма слова) с указанным ID.
public static sol_GetEntryNameFX ( IntPtr hEngine, int entryId ) : string
hEngine System.IntPtr
entryId int
return string

sol_GetErrorFX() public static method

public static sol_GetErrorFX ( IntPtr hEngine ) : string
hEngine System.IntPtr
return string

sol_GetFetchedSentenceFX() public static method

Получение очередного предложения от сегментатора текста.
public static sol_GetFetchedSentenceFX ( System hBroker ) : string
hBroker System Дескриптор сегментатора текста, созданный, например, с помощью sol_CreateSentenceBroker
return string

sol_GetFlexionHandlerWordformFX() public static method

public static sol_GetFlexionHandlerWordformFX ( IntPtr hEngine, IntPtr hFlex, string dims ) : string
hEngine System.IntPtr
hFlex System.IntPtr
dims string
return string

sol_GetLongStringFX() public static method

public static sol_GetLongStringFX ( System hString ) : string
hString System
return string

sol_GetNodeContentsFX() public static method

public static sol_GetNodeContentsFX ( IntPtr hNode ) : string
hNode System.IntPtr
return string

sol_GetNodeMarkNameFX() public static method

public static sol_GetNodeMarkNameFX ( System hNode, int mark_index ) : string
hNode System
mark_index int
return string

sol_GetPhraseTextFX() public static method

public static sol_GetPhraseTextFX ( IntPtr hEngine, int PhraseId ) : string
hEngine System.IntPtr
PhraseId int
return string

sol_GetStringFX() public static method

public static sol_GetStringFX ( IntPtr hToks, int i ) : string
hToks System.IntPtr
i int
return string

sol_GetVersionFX() public static method

Получение строки с номером версии грамматического движка в виде "XX.YY.ZZ битность"
public static sol_GetVersionFX ( IntPtr hEngine ) : string
hEngine System.IntPtr
return string

sol_LinksInfoFlagsTxtFX() public static method

public static sol_LinksInfoFlagsTxtFX ( IntPtr hEngine, IntPtr hList, int Index ) : string
hEngine System.IntPtr
hList System.IntPtr
Index int
return string

sol_LinksInfoTagsTxtFX() public static method

public static sol_LinksInfoTagsTxtFX ( IntPtr hEngine, IntPtr hList, int Index ) : string
hEngine System.IntPtr
hList System.IntPtr
Index int
return string

sol_ListEntriesFX() public static method

public static sol_ListEntriesFX ( IntPtr hEngine, int Flags, int EntryType, string Mask, int Language, int Class ) : int[]
hEngine System.IntPtr
Flags int
EntryType int
Mask string
Language int
Class int
return int[]

sol_RestoreCasingFX() public static method

public static sol_RestoreCasingFX ( IntPtr hEngine, string Word, int id_entry ) : string
hEngine System.IntPtr
Word string
id_entry int
return string

sol_SeekThesaurusFX() public static method

public static sol_SeekThesaurusFX ( IntPtr hEngine, int EntryID, bool Synonyms, bool Grammar_Links, bool Translation, bool Semantics, int nJumps ) : int[]
hEngine System.IntPtr
EntryID int
Synonyms bool
Grammar_Links bool
Translation bool
Semantics bool
nJumps int
return int[]

sol_TokenizeFX() public static method

public static sol_TokenizeFX ( IntPtr hEngine, string Text, int LanguageID ) : string[]
hEngine System.IntPtr
Text string
LanguageID int
return string[]