diff --git a/src/main/java/org/dromara/easyai/naturalLanguage/WorldBody.java b/src/main/java/org/dromara/easyai/naturalLanguage/WorldBody.java new file mode 100644 index 0000000..f4773c6 --- /dev/null +++ b/src/main/java/org/dromara/easyai/naturalLanguage/WorldBody.java @@ -0,0 +1,42 @@ +package org.dromara.easyai.naturalLanguage; + +import java.util.List; + +public class WorldBody { + private String wordName;//词 + private int wordFrequency;//词频 + private List worldBodies;//辐射集合 + private Word word; + + public String getWordName() { + return wordName; + } + + public void setWordName(String wordName) { + this.wordName = wordName; + } + + public int getWordFrequency() { + return wordFrequency; + } + + public void addNub() { + wordFrequency++; + } + + public List getWorldBodies() { + return worldBodies; + } + + public void setWorldBodies(List worldBodies) { + this.worldBodies = worldBodies; + } + + public Word getWord() { + return word; + } + + public void setWord(Word word) { + this.word = word; + } +}