예제 #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);
 }
예제 #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();
 }