2rd jun :

tfidf


How to identify tractor from many sorts of cars , the method is to say it with capable of cultivating farmland . To find the character of it which others don't have is the main idea of tfidf .
tf: Term frequency , are all character of the object .
i : inverse , subtract .
df: Document frequency , the common characters which every one has .
All characters of the object subtract the common characters that everyone has , and the result we obtain is the characters only the obtain has . The unique characters can represent the object .

package java project into runnable jar file


To run the java project on the terminal , we have to finish following things firstly .

  • Package them into runnable jar files
  • execute jar file :
java -jar filename.jar

Obviously , the second step is too easy to mention it .Thus , the main work is packaging . There are two methods for packaging them .

  • Firstly , we use Export mean in Eclipse directly . It packaged successfully , but some errors occurs when executing . I will take care of them tomorrow .

  • Secondly , we use Maven to write the pom.xml , which contains detailed dependencies and package-plugins . We have to provide pom.xml when put them on the github , so writing pom.xml is not avoidable .

原文地址:https://www.cnblogs.com/cyno/p/4198931.html