C# Class DibburHamatchilMatcher.Program

Show file Open project: Sefaria/Sefaria-Data

Public Properties

Property Type Description
gdebugiteration int
lettersInOrderOfFrequency List
pregeneratedKMultiwordValues long[]
pregeneratedKWordValues long[]

Public Methods

Method Description
CalculateHashes ( List allwords ) : List
InitializeHashTables ( ) : void

Private Methods

Method Description
BuildPhraseFromArray ( List allWords, int iWord, int len, int wordToSkip = -1, int word2ToSkip = -1 ) : string
CalculateAndFillInDisambiguity ( RashiUnit ru ) : void
CleanText ( string curLine ) : string
ComputeLevenshteinDistance ( string s, string t ) : int

Compute the distance between two strings.

ComputeLevenshteinDistanceByWord ( string s, string t ) : int
CountUnmatchedUpRashi ( GemaraDaf curDaf ) : int
CountWords ( string s ) : int
Get2LetterForm ( string s ) : string
GetAllApproximateMatches ( GemaraDaf curDaf, RashiUnit curRashi, int startBound, int endBound, double threshold ) : List
GetAllApproximateMatchesWithAbbrev ( GemaraDaf curDaf, RashiUnit curRashi, int startBound, int endBound, double threshold ) : List
GetAllApproximateMatchesWithWordSkip ( GemaraDaf curDaf, RashiUnit curRashi, int startBound, int endBound, double threshold ) : List
GetAllMasechtotWithRashi ( string baseDir ) : List
GetAllMasechtotWithRashiFromSerializedData ( string baseDir ) : List
GetNormalizedLetter ( char ch ) : char
GetPolynomialKMultiWordValue ( int pos ) : long
GetPolynomialKValueReal ( int pos, int k ) : long
GetPolynomialKWordValue ( int pos ) : long
GetRashiBoundaries ( List allRashi, int dwRashi, int &startBound, int &endBound, int &prevMatchedRashi, int &nextMatchedRashi, int maxBound ) : void
GetStringWithRemovedWord ( string p, int iWordToIgnore ) : string
GetWordSignature ( string word ) : long
IsStringMatchup ( string orig, string target, double threshold, double &score ) : bool
Main ( string args ) : void
RecalculateDisambiguities ( List allRashis, List rashisByDisambiguity, int prevMatchedRashi, int nextMatchedRashi, int startbound, int endbound, RashiUnit newlyMatchedRashiUnit ) : void

Method Details

CalculateHashes() public static method

public static CalculateHashes ( List allwords ) : List
allwords List
return List

InitializeHashTables() public static method

public static InitializeHashTables ( ) : void
return void

Property Details

gdebugiteration public static property

public static int gdebugiteration
return int

lettersInOrderOfFrequency public static property

public static List lettersInOrderOfFrequency
return List

pregeneratedKMultiwordValues public static property

public static long[] pregeneratedKMultiwordValues
return long[]

pregeneratedKWordValues public static property

public static long[] pregeneratedKWordValues
return long[]