All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lionsoul.jcseg.server.JcsegTokenizerEntry Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
package org.lionsoul.jcseg.server;

import org.lionsoul.jcseg.tokenizer.core.ADictionary;
import org.lionsoul.jcseg.tokenizer.core.JcsegTaskConfig;

/**
 *  TokenizerEntry to save setting for Tokenizer object 
 * 
 * @author dongyado
 * @author chenxin
*/
public class JcsegTokenizerEntry {
    
    private int algorithm;
    private JcsegTaskConfig config = null;
    private ADictionary dic = null;
    
    public JcsegTokenizerEntry(int algorithm, JcsegTaskConfig config, ADictionary dic )
    {
        this.algorithm = algorithm;
        this.config = config;
        this.dic = dic;
    }
    
    public JcsegTaskConfig getConfig()
    {
        return config;
    }
    
    public void setConfig(JcsegTaskConfig config)
    {
        this.config = config;
    }
    
    public ADictionary getDict()
    {
        return dic;
    }
    
    public void setDict(ADictionary dic)
    {
        this.dic = dic;
    }

    public int getAlgorithm()
    {
        return algorithm;
    }

    public void setAlgorithm(int algorithm)
    {
        this.algorithm = algorithm;
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy