C# Класс SIL.FieldWorks.IText.SandboxBase.MorphemeBreaker

Analyze the string. We're looking for something like un- except -ion -al -ly. The one with spaces on both sides is a root, the others are prefixes or suffixes. Todo WW(JohnT): enhance to handle other morpheme break characters. Todo WW (JohnT): enhance to look for trailing ;POS and handle appropriately.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BreakIntoMorphs ( string morphFormWithMarkers, string baseWord ) : List
DoBasicFinding ( string input, string breakMarkers, string prefixMarkers, string postfixMarkers ) : string

Handle basic work on finding the morpheme breaks.

MakeSel ( ) : void

Reestablish a selection, if possible.

MorphemeBreaker ( CachePair caches, string input, int hvoSbWord, int wsVern, SandboxBase sandbox ) : System
Run ( ) : void

Run the morpheme breaking algorithm.

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

Метод Описание
AdjustIpForInsertions ( string fullForm ) : void

Check the fullForm for added spaces. m_input must be unchanged since fullForm was changed.

BreakIntoMorphs ( string morphFormWithMarkers, string baseWord, List &ccTrailingMorphs ) : List

Split the string into morphs respecting existing spaces in base word

GetExistingMorphForm ( int &hvoSbMorph, int &hvoSbForm, int imorph ) : string
HandleMorpheme ( string stMorph, int ccTrailing, bool fMonoMorphemic ) : void

Should be called with a non-empty sequence of characters from m_ichStartMorpheme to m_ich as a morpheme.

IchLimOfMorphs ( string sourceString, bool fBaseWordIsPhrase ) : List

get the end offsets for potential morphs based upon whitespace delimiters

TrimInputString ( ) : string
WhiteSpaceOffsets ( string sourceString ) : List

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

BreakIntoMorphs() публичный статический Метод

public static BreakIntoMorphs ( string morphFormWithMarkers, string baseWord ) : List
morphFormWithMarkers string
baseWord string
Результат List

DoBasicFinding() публичный статический Метод

Handle basic work on finding the morpheme breaks.
public static DoBasicFinding ( string input, string breakMarkers, string prefixMarkers, string postfixMarkers ) : string
input string
breakMarkers string
prefixMarkers string
postfixMarkers string
Результат string

MakeSel() публичный Метод

Reestablish a selection, if possible.
public MakeSel ( ) : void
Результат void

MorphemeBreaker() публичный Метод

public MorphemeBreaker ( CachePair caches, string input, int hvoSbWord, int wsVern, SandboxBase sandbox ) : System
caches CachePair
input string
hvoSbWord int
wsVern int
sandbox SandboxBase
Результат System

Run() публичный Метод

Run the morpheme breaking algorithm.
public Run ( ) : void
Результат void