⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bncword.java

📁 一个关于CHATBOT的程序(人式智能方面)
💻 JAVA
字号:
package ijp.assignment1.utils;import java.io.Serializable;/** * A data structure for storing information about word from the British National * Corpus (BNC). We only store the word and its frequency in the BNC * in this version. Note that this class is serializable - Objects * created from it can be read  * and written to disc for future use *  * @author Judy Robertson */public class BNCWord implements Serializable {    /**     * The word     */    private String word;        /**     * The frequency of the word in the BNC     */    private int frequency;    /**     * Sets the word     * @param w The word     */        public void setWord(String w) {        word = w;    }        /**     * Sets the frequency of this word     * @param f The frequency of this word in the Britsh National Corpus     */    public void setFrequency(int f) {        frequency = f;    }        /**     * Get the frequency of this word     * @return The frequency of this word in the British National Corpus     */    public int getFrequency() {        return frequency;    }        /**     * Gets the word     * @return the word     */    public String getWord() {        return word;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -