de.tuebingen.uni.sfs.germanet.relatedness
Class Demo

java.lang.Object
  extended by de.tuebingen.uni.sfs.germanet.relatedness.Demo

public class Demo
extends java.lang.Object

Demo class demonstrating some features of the Relatedness package, namely of the Path and Relatedness classes.


Constructor Summary
Demo()
           
 
Method Summary
static void main(java.lang.String[] args)
          Shows functionality of the Path and Relatedness classes.
static java.lang.String pprint(java.util.ArrayList<java.util.ArrayList<de.tuebingen.uni.sfs.germanet.api.Synset>> list)
          A little method to produce nice path1 output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Demo

public Demo()
Method Detail

main

public static void main(java.lang.String[] args)
Shows functionality of the Path and Relatedness classes. The input arguments need to be:
- path1 to GermaNet xml directory
- path1 to directory with frequency list(synset1); POS of each list needs to be included in name (nn,vv,adj)

Parameters:
args - the command line arguments

pprint

public static java.lang.String pprint(java.util.ArrayList<java.util.ArrayList<de.tuebingen.uni.sfs.germanet.api.Synset>> list)
A little method to produce nice path1 output.

Parameters:
list - An ArrayList of ArrayLists of Synsets
Returns:
a String containing that list in nice, easy to understand format