public class MarkovRandomField extends Object
Constructor and Description |
---|
MarkovRandomField(String[] queryTerms,
RetrievalEnvironment env)
Creates a
MarkovRandomField object. |
Modifier and Type | Method and Description |
---|---|
void |
addClique(Clique c)
Adds a clique to this MRF.
|
List<Clique> |
getCliques()
Returns the cliques in this MRF.
|
GlobalEvidence |
getGlobalEvidence()
Returns the
GlobalEvidence associated with this MRF. |
int |
getNextCandidate()
Returns the next candidate for scoring.
|
List<GraphNode> |
getNodes()
Returns the nodes associated with this MRF.
|
String[] |
getQueryTerms()
Returns the query terms.
|
RetrievalEnvironment |
getRetrievalEnvironment()
Returns the retrieval environment associated with this MRF.
|
void |
initialize()
Initializes this MRF.
|
void |
removeAllCliques()
Removes all cliques from this MRF.
|
String |
toString()
Returns a human-readable representation of this MRF.
|
String |
toString(boolean verbose)
Returns a human-readable representation of this MRF.
|
public MarkovRandomField(String[] queryTerms, RetrievalEnvironment env)
MarkovRandomField
object.queryTerms
- query termsenv
- retrieval environment (for computing global evidence)public void addClique(Clique c)
c
- clique to addpublic List<Clique> getCliques()
public GlobalEvidence getGlobalEvidence()
GlobalEvidence
associated with this MRF.GlobalEvidence
associated with this MRFpublic int getNextCandidate()
public List<GraphNode> getNodes()
public String[] getQueryTerms()
public RetrievalEnvironment getRetrievalEnvironment()
public void initialize() throws ConfigurationException
ConfigurationException
public void removeAllCliques()
public String toString()
public String toString(boolean verbose)
verbose
- verbose output