C# Class Strabo.Core.TextRecognition.CheckDictionaryElasticSearch

Datei anzeigen Open project: spatial-computing/strabo-learning-ocr-transformation Class Usage Examples

Public Properties

Property Type Description
geo_dictionary HashSet

Public Methods

Method Description
findSimilarDictionaryWord ( string word, double maxSimilarity, int index, List equalMinDistanceDictWordList, bool exact ) : double
getDictionaryWord ( TessResult tr, int dictionaryExactMatchStringLength ) : TessResult
readDictionary ( double top, double left, double bottom, double right ) : void

Private Methods

Method Description
NeedlemanWunschTiebreaker ( IEnumerable candidates, string text, bool front, bool back ) : string
checkMultiLines ( string text, bool front, bool back ) : DictResult
checkOneLine ( string text, bool f, bool b ) : DictResult
checkOneWord ( string text, bool front, bool back ) : DictResult
reverseWord ( string word ) : string
writeAlignment ( IEnumerable candidates, string text ) : void
writeResult ( IEnumerable candidates, string text, string maxstr ) : void

Method Details

findSimilarDictionaryWord() public static method

public static findSimilarDictionaryWord ( string word, double maxSimilarity, int index, List equalMinDistanceDictWordList, bool exact ) : double
word string
maxSimilarity double
index int
equalMinDistanceDictWordList List
exact bool
return double

getDictionaryWord() public static method

public static getDictionaryWord ( TessResult tr, int dictionaryExactMatchStringLength ) : TessResult
tr TessResult
dictionaryExactMatchStringLength int
return TessResult

readDictionary() public static method

public static readDictionary ( double top, double left, double bottom, double right ) : void
top double
left double
bottom double
right double
return void

Property Details

geo_dictionary public_oe static_oe property

public static HashSet geo_dictionary
return HashSet