public class Configuration extends Object implements Comparable, Cloneable, Serializable
| 构造器和说明 |
|---|
Configuration(Sentence sentence) |
Configuration(Sentence sentence,
boolean rootFirst) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAction(int action) |
void |
addScore(float score) |
Configuration |
clone() |
int |
compareTo(Object o) |
boolean |
equals(Object o) |
float |
getScore(boolean normalized)
Returns the current score of the configuration
|
int |
hashCode() |
void |
setScore(float score) |
public Configuration(Sentence sentence, boolean rootFirst)
public Configuration(Sentence sentence)
public float getScore(boolean normalized)
normalized - if true, the score will be normalized by the index of done actionspublic void addScore(float score)
public void setScore(float score)
public void addAction(int action)
public int compareTo(Object o)
compareTo 在接口中 Comparablepublic Configuration clone()
Copyright © 2014–2019 码农场. All rights reserved.