我正在寻找比较两个对象列表;了解语料库的语言。参考列表由 txt 构建。语料库也是如此。
列表参考/列表语料库
public Canagram(string anagram, int frequency,int percentage)
{
anagram = Anagram; // exemple "a"
frequency = Frequency; // how many "a" in the txt
percentage = Percentage; // what's the percentage compared to the other anagram
}
目标是将每个列表上的每个字谜与百分比匹配,并返回这两个列表之间的全局百分比匹配。
public static int percentage(List<Canagram> reference, List<Canagram> corpus)
{
//don"t know how to compare this two list properly and return % match
return (int) percentage of match;
}
谢谢!