研究文章
创新的协同设计研究混合在高职院校英语教学基于数字技术
|
doc1公共浮动重复值(文档,文档doc2) { |
|
浮字TFIDF f = 0.0; |
|
浮动doc1 TFIDF f = 0.0; |
|
浮动doc2 TFIDF f = 0.0; |
|
(字符串字:doc1.getContentTerms () .keySet ()) { |
|
如果(doc2.getContentTerms ()。containsKey(词)){ |
|
关键字TFIDF + = doc1.getContentTerms () . get(词); |
|
} |
|
Doc1 TFIDF + = doc1.getContentTerms () . get(词); |
|
} |
|
(字符串字:doc2.getContentTerms () .keySet ()) { |
|
Doc2 TFIDF + = doc2.getContentTerms () . get(词); |
|
} |
|
返回(关键字TFIDF / doc1 TFIDF)(关键字TFIDF / doc2 TFIDF); |
|
}。 |
|