Example #1
0
 public static double getSimilarityOfChar(char a, char b, double rate = 1.0)
 {
     if (a == b)
     {
         return(rate);
     }
     return(CharacterSimilarityHelper.getSimilarityFor(a, b) * rate);
 }
Example #2
0
 public ContractNote(MainWindow mainWindow)
 {
     this.mainWindow             = mainWindow;
     pdfParser                   = new PdfParser(this);
     contractNoteTemplateManager = new ContractNoteTemplateManager(this);
     contractNoteItemManager     = new ContractNoteItemManager(this);
     ruleManager                 = new RuleManager();
     CharacterSimilarityHelper.loadDictionary();
 }