public class SceneGraphImageRegion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Set<SceneGraphImageAttribute> |
attributes |
GrammaticalStructure |
gs |
int |
h |
java.lang.String |
phrase |
java.util.Set<SceneGraphImageRelationship> |
relationships |
java.util.List<CoreLabel> |
tokens |
int |
w |
int |
x |
int |
y |
Constructor and Description |
---|
SceneGraphImageRegion() |
Modifier and Type | Method and Description |
---|---|
static SceneGraphImageRegion |
fromJSONObject(SceneGraphImage img,
org.json.simple.JSONObject obj) |
SemanticGraph |
getBasicSemanticGraph() |
SemanticGraph |
getEnhancedSemanticGraph() |
org.json.simple.JSONObject |
toJSONObject(SceneGraphImage sceneGraphImage) |
java.lang.String |
toReadableString() |
public int h
public int w
public int x
public int y
public java.lang.String phrase
public java.util.List<CoreLabel> tokens
public java.util.Set<SceneGraphImageAttribute> attributes
public java.util.Set<SceneGraphImageRelationship> relationships
public GrammaticalStructure gs
public static SceneGraphImageRegion fromJSONObject(SceneGraphImage img, org.json.simple.JSONObject obj)
public org.json.simple.JSONObject toJSONObject(SceneGraphImage sceneGraphImage)
public SemanticGraph getBasicSemanticGraph()
public SemanticGraph getEnhancedSemanticGraph()
public java.lang.String toReadableString()