From 938b5ab8595032be4d2731523987e952980803b7 Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:29 +0800 Subject: [PATCH] Add File --- .../easyai/naturalLanguage/WordModel.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/naturalLanguage/WordModel.java diff --git a/src/main/java/org/dromara/easyai/naturalLanguage/WordModel.java b/src/main/java/org/dromara/easyai/naturalLanguage/WordModel.java new file mode 100644 index 0000000..e50826d --- /dev/null +++ b/src/main/java/org/dromara/easyai/naturalLanguage/WordModel.java @@ -0,0 +1,67 @@ +package org.dromara.easyai.naturalLanguage; + +import org.dromara.easyai.randomForest.RfModel; + +import java.util.List; + +/** + * @author lidapeng + * @description中文语言分类模型 + * @date 11:24 上午 2020/2/29 + */ +public class WordModel { + private RfModel rfModel;//随机森林模型 + private List allWorld;//所有词集合 + private List> wordTimes;//所有分词编号 + private float garbageTh;//垃圾分类的阈值默认0.5 + private float trustPunishment;//信任惩罚 + private float trustTh;//信任阈值 + + public float getGarbageTh() { + return garbageTh; + } + + public void setGarbageTh(float garbageTh) { + this.garbageTh = garbageTh; + } + + public float getTrustPunishment() { + return trustPunishment; + } + + public void setTrustPunishment(float trustPunishment) { + this.trustPunishment = trustPunishment; + } + + public float getTrustTh() { + return trustTh; + } + + public void setTrustTh(float trustTh) { + this.trustTh = trustTh; + } + + public RfModel getRfModel() { + return rfModel; + } + + public void setRfModel(RfModel rfModel) { + this.rfModel = rfModel; + } + + public List getAllWorld() { + return allWorld; + } + + public void setAllWorld(List allWorld) { + this.allWorld = allWorld; + } + + public List> getWordTimes() { + return wordTimes; + } + + public void setWordTimes(List> wordTimes) { + this.wordTimes = wordTimes; + } +}