edu.washington.cs.knowitall.rule
Class AnnotatedSentence
java.lang.Object
edu.washington.cs.knowitall.rule.AnnotatedSentence
public class AnnotatedSentence
- extends Object
sentence
public final Sentence sentence
annotations
public final List<Annotation> annotations
AnnotatedSentence
public AnnotatedSentence(Sentence sentence,
List<Annotation> annotations)
build
public static List<AnnotatedSentence> build(Collection<Sentence> sentences,
Collection<Annotation> annotations)
fromFile
public static List<AnnotatedSentence> fromFile(File file,
Collection<Sentence> sentences)
throws IOException
- Throws:
IOException
annotations
public static Iterable<Annotation> annotations(Iterable<AnnotatedSentence> annotateds)
sentences
public static Iterable<Sentence> sentences(Iterable<AnnotatedSentence> annotateds)
toString
public String toString()
- Overrides:
toString in class Object
containsRelation
public boolean containsRelation(OntologicalRelation relation)
matchesRelation
public double matchesRelation(OntologicalRelation relation,
OntologicalRelationMatcher matcher)
fromDocument
public static List<AnnotatedSentence> fromDocument(org.jdom.Document document)
fromXmlElement
public static AnnotatedSentence fromXmlElement(org.jdom.Element e)
toXmlElement
public org.jdom.Element toXmlElement()
main
public static void main(String[] args)
throws org.jdom.JDOMException,
IOException
- Throws:
org.jdom.JDOMException
IOException
Copyright © 2011 University of Washington CSE. All Rights Reserved.