org.apache.ctakes.relationextractor.data
Class Stats

java.lang.Object
  extended by org.apache.ctakes.relationextractor.data.Stats

public class Stats
extends Object

Calculate relation frequencies in a data set that consists of XML files exported from Knowtator.

Author:
dmitriy dligach

Field Summary
static boolean readOnlySharpRelations
           
 
Constructor Summary
Stats()
           
 
Method Summary
static void getEntityStats(String inputDir)
           
static void getRelationStats(String inputDir)
           
static void main(String[] args)
           
static void reportStats(HashMap<String,Integer> counts, int totalCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readOnlySharpRelations

public static final boolean readOnlySharpRelations
See Also:
Constant Field Values
Constructor Detail

Stats

public Stats()
Method Detail

getEntityStats

public static void getEntityStats(String inputDir)
                           throws org.jdom.JDOMException,
                                  IOException
Throws:
org.jdom.JDOMException
IOException

getRelationStats

public static void getRelationStats(String inputDir)
                             throws org.jdom.JDOMException,
                                    IOException
Throws:
org.jdom.JDOMException
IOException

reportStats

public static void reportStats(HashMap<String,Integer> counts,
                               int totalCount)

main

public static void main(String[] args)
                 throws org.jdom.JDOMException,
                        IOException
Throws:
org.jdom.JDOMException
IOException


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.