edu.washington.cs.knowitall.type
Class TypeHierarchy
java.lang.Object
edu.washington.cs.knowitall.type.TypeHierarchy
public class TypeHierarchy
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeHierarchy
public TypeHierarchy()
put
public void put(String parent,
String child)
containsKey
public boolean containsKey(String key)
getChildren
public Collection<String> getChildren(String parent)
getDescendents
public Collection<String> getDescendents(String parent)
buildDescendents
public void buildDescendents()
write
public void write(PrintWriter writer)
read
public static TypeHierarchy read(BufferedReader reader)
throws IOException
- Throws:
IOException
Copyright © 2011 University of Washington CSE. All Rights Reserved.