public class Configuration extends Object implements Comparable, Cloneable, Serializable
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Integer> |
actionHistory |
float |
score |
Sentence |
sentence |
State |
state |
| Constructor and Description |
|---|
Configuration(Sentence sentence) |
Configuration(Sentence sentence,
boolean rootFirst) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Comparablepublic Configuration clone()
Copyright © 2014–2021 码农场. All rights reserved.