edu.washington.cs.knowitall.rule
Class AnnotatedSentence

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.AnnotatedSentence

public class AnnotatedSentence
extends Object


Field Summary
 List<Annotation> annotations
           
 Sentence sentence
           
 
Constructor Summary
AnnotatedSentence(Sentence sentence, List<Annotation> annotations)
           
 
Method Summary
static Iterable<Annotation> annotations(Iterable<AnnotatedSentence> annotateds)
           
static List<AnnotatedSentence> build(Collection<Sentence> sentences, Collection<Annotation> annotations)
           
 boolean containsRelation(OntologicalRelation relation)
           
static List<AnnotatedSentence> fromDocument(org.jdom.Document document)
           
static List<AnnotatedSentence> fromFile(File file, Collection<Sentence> sentences)
           
static AnnotatedSentence fromXmlElement(org.jdom.Element e)
           
static void main(String[] args)
           
 double matchesRelation(OntologicalRelation relation, OntologicalRelationMatcher matcher)
           
static Iterable<Sentence> sentences(Iterable<AnnotatedSentence> annotateds)
           
 String toString()
           
 org.jdom.Element toXmlElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sentence

public final Sentence sentence

annotations

public final List<Annotation> annotations
Constructor Detail

AnnotatedSentence

public AnnotatedSentence(Sentence sentence,
                         List<Annotation> annotations)
Method Detail

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.