public Test() { string s1 = "The main plication. pplication pplication pplication pplication pplication pplication pplication "; string s2 = "Add code to start application here pplication pplication pplication pplication pplication pplication pplication pplication pplication pplication pplication "; //Entertaiment Entail tail, fail, enter men end s1 = "ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002 ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002"; s2 = "ALFA ALFAROMERO145TDfdsfsdgfdgdfgggggggggggggggggggggggggggggggfsdfsddddddsdfdsfsdfsdfdsfsdfdsCAT ZAR93000002 40 1 01929 001730 005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002"; // s1="2 JALAN PEMBERITA U1/49 \nTEMASYA INDUSTRIAL PARK \nGLENMARIE 40150 SHAH ALAM SEL"; // s2="D-3-2 ARCADIA APARTMENT \nUSJ 11/1 SUBANG JAYA \n47600 PETALING JAYA"; s1 = "ZONGSHEN F 2008 LZSJCJL0645 50 0 00124 00144 000285 002"; s2 = "ALFA ALFAROMERO145TDCAT ZAR93000002 40 1 01929 001730 005"; // //s1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc dddddddddddddddddddddddddddddddd"; // //s2="a b c d" ; //s1="Entertaiment Entail tail, enter fail, use enter men end Detail "; //s2="Retail detail entry point fai mention lure mention find" ; // s1="_incoming indicate the incomming left nodes of right nodes set"; // s2="_outgoing indicate the outgoing right nodes of left nodes set"; // s1="carty"; // s2="auto"; string mystr1 = "куршевель"; string mystr2 = "вермишель"; MatchsMaker match = new MatchsMaker(mystr1, mystr2); Console.WriteLine(match.Score); Console.Read(); }
public Test() { string s1="The main plication. pplication pplication pplication pplication pplication pplication pplication "; string s2="Add code to start application here pplication pplication pplication pplication pplication pplication pplication pplication pplication pplication pplication "; //Entertaiment Entail tail, fail, enter men end s1="ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002 ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002ZONGSHyryyyyyyyyyyyyyyyyyyyyyyyrtEN F 200ytrrrrrrrrrrrrrrrrrrr8 LZSJCJLytrrrrrrrrrrrrryrtyrt0645 50 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002"; s2="ALFA ALFAROMERO145TDfdsfsdgfdgdfgggggggggggggggggggggggggggggggfsdfsddddddsdfdsfsdfsdfdsfsdfdsCAT ZAR93000002 40 1 01929 001730 005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002005 0 00ytrrrrrrrrrrrrryyhjjjjjjjjjjjjjjjjj124 00144 000285 002"; // s1="2 JALAN PEMBERITA U1/49 \nTEMASYA INDUSTRIAL PARK \nGLENMARIE 40150 SHAH ALAM SEL"; // s2="D-3-2 ARCADIA APARTMENT \nUSJ 11/1 SUBANG JAYA \n47600 PETALING JAYA"; s1="ZONGSHEN F 2008 LZSJCJL0645 50 0 00124 00144 000285 002"; s2="ALFA ALFAROMERO145TDCAT ZAR93000002 40 1 01929 001730 005"; // //s1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc dddddddddddddddddddddddddddddddd"; // //s2="a b c d" ; //s1="Entertaiment Entail tail, enter fail, use enter men end Detail "; //s2="Retail detail entry point fai mention lure mention find" ; // s1="_incoming indicate the incomming left nodes of right nodes set"; // s2="_outgoing indicate the outgoing right nodes of left nodes set"; // s1="carty"; // s2="auto"; MatchsMaker match=new MatchsMaker(s1, s2) ; Trace.WriteLine(match.Score) ; }
private string Calc(List<string> lst) { var str = ""; foreach (var item in lst) { var dict2 = new Dictionary<int, float>(); for (int i = 0; i < CodeArray.Length; i++) { var match = new MatchsMaker(item, CodeArray[i]); dict2.Add(i, match.Score); } var idx = dict2.First(p => p.Value == dict2.Max(x => x.Value)).Key; switch (idx) { case 10: idx = 1; break; case 11: case 12: idx = 0; break; default: break; } str += idx; } return str; }
public Test() { string s1 = "350000, г краснодар, ул Гагарина, д. 73, корп. а, кв. 11"; string s2 = "188660, Ленинградская обл, Всеволожский р-н, Бугры п, ул Шоссейная, д. 30, кв. 25"; MatchsMaker match=new MatchsMaker(s1, s2) ; Trace.WriteLine(match.Score) ; }
public Test() { string s1 = "350000, г краснодар, ул Гагарина, д. 73, корп. а, кв. 11"; string s2 = "188660, Ленинградская обл, Всеволожский р-н, Бугры п, ул Шоссейная, д. 30, кв. 25"; MatchsMaker match = new MatchsMaker(s1, s2); Trace.WriteLine(match.Score); }
public List <string> GetSimilarUserStories(string userStoryToCompare, float minScore) { List <string> similarUserStories = new List <string>(); foreach (UserStory userStory in userStories) { WordsMatching.MatchsMaker match = new WordsMatching.MatchsMaker(userStoryToCompare, userStory.userStory); if (match.Score >= minScore) { similarUserStories.Add(userStory.userStory); } } return(similarUserStories); }
public List <string> GetSimilarTasks(string taskToCompare, float minScore) { List <string> similarTasks = new List <string>(); foreach (UserStory userStory in userStories) { foreach (string task in userStory.tasks) { WordsMatching.MatchsMaker match = new WordsMatching.MatchsMaker(taskToCompare, task); if (match.Score >= minScore) { similarTasks.Add(task); } } } return(similarTasks); }