org.ansj.app.extracting.domain.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ansj_seg Show documentation
Show all versions of ansj_seg Show documentation
best java chinese word seg !
The newest version!
package org.ansj.app.extracting.domain;
import java.util.List;
import java.util.Map;
/**
* Created by Ansj on 20/09/2017.
*/
public class Rule {
private List tokens;
private Map groups;
private Map attr;
private double weight;
private String ruleStr ;
public Rule(String ruleStr ,List tokens, Map groups, Map attr, double weight) {
this.ruleStr = ruleStr ;
this.tokens = tokens;
this.groups = groups;
this.attr = attr ;
this.weight = weight;
}
public void setTokens(List tokens) {
this.tokens = tokens;
}
public void setGroups(Map groups) {
this.groups = groups;
}
public void setWeight(double weight) {
this.weight = weight;
}
public List getTokens() {
return tokens;
}
public Map getGroups() {
return groups;
}
public Map getAttr() {
return attr;
}
public double getWeight() {
return weight;
}
public String getRuleStr() {
return ruleStr;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy