diff --git a/src/main/java/org/dromara/easyai/naturalLanguage/Word.java b/src/main/java/org/dromara/easyai/naturalLanguage/Word.java new file mode 100644 index 0000000..8d9e13d --- /dev/null +++ b/src/main/java/org/dromara/easyai/naturalLanguage/Word.java @@ -0,0 +1,41 @@ +package org.dromara.easyai.naturalLanguage; + + +public class Word { + private String word; + private Word son; + private int wordFrequency;//词频 + private int lv;//该词的时间序列 + + public int getLv() { + return lv; + } + + public void setLv(int lv) { + this.lv = lv; + } + + public String getWord() { + return word; + } + + public void setWord(String word) { + this.word = word; + } + + public Word getSon() { + return son; + } + + public void setSon(Word son) { + this.son = son; + } + + public int getWordFrequency() { + return wordFrequency; + } + + public void setWordFrequency(int wordFrequency) { + this.wordFrequency = wordFrequency; + } +}