@Test public void testSerializationAndDeserialization() throws IOException { String text = "Although the Treasury will announce details of the November refunding on Monday, the funding will be delayed if Congress and President Bush fail to increase the Treasury's borrowing capacity."; RelationExtractionContent c = graphene.doRelationExtraction(text, false, false); final String filename = "tmp-w8weg3q493ewqieh.json"; LOG.info("SAVE TO FILE..."); c.serializeToJSON(new File(filename)); LOG.info("LOAD FROM FILE..."); RelationExtractionContent loaded = RelationExtractionContent.deserializeFromJSON(new File(filename), RelationExtractionContent.class); LOG.info(loaded.defaultFormat(false)); LOG.info("DELETE FILE..."); File file = new File(filename); file.delete(); }
public RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences) { final DiscourseSimplificationContent dsc = doDiscourseSimplification(text, doCoreference, isolateSentences); log.debug("doRelationExtraction for text"); final RelationExtractionContent ec = relationExtractionRunner.doRelationExtraction(dsc); ec.setCoreferenced(dsc.isCoreferenced()); log.debug("Relation Extraction for text finished"); return ec; }
Graphene { public RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences) { final DiscourseSimplificationContent dsc = doDiscourseSimplification(text, doCoreference, isolateSentences); log.debug("doRelationExtraction for text"); final RelationExtractionContent ec = relationExtractionRunner.doRelationExtraction(dsc); ec.setCoreferenced(dsc.isCoreferenced()); log.debug("Relation Extraction for text finished"); return ec; } }
Graphene { public RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences) { final DiscourseSimplificationContent dsc = doDiscourseSimplification(text, doCoreference, isolateSentences); log.debug("doRelationExtraction for text"); final RelationExtractionContent ec = relationExtractionRunner.doRelationExtraction(dsc); ec.setCoreferenced(dsc.isCoreferenced()); log.debug("Relation Extraction for text finished"); return ec; } Graphene();  Graphene(Config config); }
Graphene { public RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences) { final DiscourseSimplificationContent dsc = doDiscourseSimplification(text, doCoreference, isolateSentences); log.debug("doRelationExtraction for text"); final RelationExtractionContent ec = relationExtractionRunner.doRelationExtraction(dsc); ec.setCoreferenced(dsc.isCoreferenced()); log.debug("Relation Extraction for text finished"); return ec; } Graphene();  Graphene(Config config); CoreferenceContent doCoreference(String text); DiscourseSimplificationContent doDiscourseSimplification(String text, boolean doCoreference, boolean isolateSentences); RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences); RelationExtractionContent doRelationExtraction(DiscourseSimplificationContent discourseSimplificationContent, boolean coreferenced); VersionInfo getVersionInfo(); }
Graphene { public RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences) { final DiscourseSimplificationContent dsc = doDiscourseSimplification(text, doCoreference, isolateSentences); log.debug("doRelationExtraction for text"); final RelationExtractionContent ec = relationExtractionRunner.doRelationExtraction(dsc); ec.setCoreferenced(dsc.isCoreferenced()); log.debug("Relation Extraction for text finished"); return ec; } Graphene();  Graphene(Config config); CoreferenceContent doCoreference(String text); DiscourseSimplificationContent doDiscourseSimplification(String text, boolean doCoreference, boolean isolateSentences); RelationExtractionContent doRelationExtraction(String text, boolean doCoreference, boolean isolateSentences); RelationExtractionContent doRelationExtraction(DiscourseSimplificationContent discourseSimplificationContent, boolean coreferenced); VersionInfo getVersionInfo();  }