edu.isi.karma.modeling.semantictypes
Class CRFColumnModel

java.lang.Object
  extended by edu.isi.karma.modeling.semantictypes.CRFColumnModel
All Implemented Interfaces:
edu.isi.karma.util.Jsonizable

public class CRFColumnModel
extends java.lang.Object
implements edu.isi.karma.util.Jsonizable


Constructor Summary
CRFColumnModel(java.util.ArrayList<java.lang.String> labels, java.util.ArrayList<java.lang.Double> scores)
           
 
Method Summary
 org.json.JSONObject getAsJSONObject()
           
 java.lang.Double getScoreForLabel(java.lang.String label)
           
 java.util.HashMap<java.lang.String,java.lang.Double> getScoreMap()
           
 void write(org.json.JSONWriter writer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRFColumnModel

public CRFColumnModel(java.util.ArrayList<java.lang.String> labels,
                      java.util.ArrayList<java.lang.Double> scores)
Method Detail

getScoreMap

public java.util.HashMap<java.lang.String,java.lang.Double> getScoreMap()

getScoreForLabel

public java.lang.Double getScoreForLabel(java.lang.String label)

write

public void write(org.json.JSONWriter writer)
           throws org.json.JSONException
Specified by:
write in interface edu.isi.karma.util.Jsonizable
Throws:
org.json.JSONException

getAsJSONObject

public org.json.JSONObject getAsJSONObject()
                                    throws org.json.JSONException
Throws:
org.json.JSONException