C# 클래스 Egothor.Stemmer.Diff

The Diff object generates a patch string.

A patch string is actually a command to a stemmer telling it how to reduce a word to its root. For example, to reduce the word teacher to its root teach the patch string Db would be generated. This command tells the stemmer to delete the last 2 characters from the word teacher to reach the stem (the patch commands are applied starting from the last character in order to save

파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
Apply ( StringBuilder dest, string diff ) : void

Apply the given patch string diff to the given string dest

Diff ( ) : System

Constructor for the Diff object.

Diff ( int ins, int del, int rep, int noop ) : System

Constructor for the Diff object

Exec ( string a, string b ) : string

Construct a patch string that transforms a to b.

메소드 상세

Apply() 공개 정적인 메소드

Apply the given patch string diff to the given string dest
public static Apply ( StringBuilder dest, string diff ) : void
dest StringBuilder Destination string
diff string Patch string
리턴 void

Diff() 공개 메소드

Constructor for the Diff object.
public Diff ( ) : System
리턴 System

Diff() 공개 메소드

Constructor for the Diff object
public Diff ( int ins, int del, int rep, int noop ) : System
ins int Description of the Parameter
del int Description of the Parameter
rep int Description of the Parameter
noop int Description of the Parameter
리턴 System

Exec() 공개 메소드

Construct a patch string that transforms a to b.
public Exec ( string a, string b ) : string
a string 1st string
b string 2nd string
리턴 string