|
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
|
|
|
|
* 情感分析
|
|
|
|
|
*/
|
|
|
|
|
public class SentimentAnalysisUtils {
|
|
|
|
|
public static final String CORPUS_FOLDER = TestUtility.ensureTestData("ChnSentiCorp情感分析酒店评论", "http://hanlp.linrunsoft.com/release/corpus/ChnSentiCorp.zip");
|
|
|
|
|
public static final String CORPUS_FOLDER = TestUtility.ensureTestData("ChnSentiCorp", "http://hanlp.linrunsoft.com/release/corpus/ChnSentiCorp.zip");
|
|
|
|
|
public static final String MODEL_PATH = "data/test/sentiment-classification-model.ser";
|
|
|
|
|
|
|
|
|
|
public static String analysis(String text){
|
|
|
|
|