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.
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
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