edu.uchsc.ccp.iaa.html
Class IAA2HTML
java.lang.Object
edu.uchsc.ccp.iaa.html.IAA2HTML
public class IAA2HTML
- extends Object
Method Summary |
static Set<Annotation> |
getCandidateAnnotations(Annotation annotation,
AnnotationSpanIndex spanIndex)
|
static Set<Annotation> |
getSingleSet(Map<String,Set<Annotation>> annotations)
|
static void |
initHTML(PrintStream html,
String title,
String link,
String linkLabel,
String description)
|
static String |
initHTML(String title,
String description)
|
static void |
printIAA(IAA iaa,
Matcher matcher,
File directory,
int numberOfDocs,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames)
|
static void |
printInstances(PrintStream out,
Map<String,Set<Annotation>> sortedAnnotations,
List<String> sortedTypes,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Map<Annotation,Set<Annotation>> comparisonAnnotations)
|
static void |
printMatchData(PrintStream html,
Set<String> sets,
String fileName,
File directory,
Map<String,Set<Annotation>> allwayMatches,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Set<String> classes,
IAA iaa)
|
static void |
printNonmatchData(PrintStream html,
Set<String> sets,
String fileName,
File directory,
Map<String,Set<Annotation>> allwayNonmatches,
AnnotationSpanIndex spanIndex,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Set<String> classes,
IAA iaa)
|
static void |
printPairwiseAgreement(PrintStream html,
Set<String> sets,
Map<String,Map<String,Set<Annotation>>> pairwiseMatches,
Map<String,Map<String,Set<Annotation>>> pairwiseNonmatches,
NumberFormat percentageFormat)
|
static Map<String,Set<Annotation>> |
sortByType(Set<String> types,
Collection<Annotation> annotations)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IAA2HTML
public IAA2HTML()
printIAA
public static void printIAA(IAA iaa,
Matcher matcher,
File directory,
int numberOfDocs,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames)
throws Exception
- Throws:
Exception
getCandidateAnnotations
public static Set<Annotation> getCandidateAnnotations(Annotation annotation,
AnnotationSpanIndex spanIndex)
printInstances
public static void printInstances(PrintStream out,
Map<String,Set<Annotation>> sortedAnnotations,
List<String> sortedTypes,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Map<Annotation,Set<Annotation>> comparisonAnnotations)
getSingleSet
public static Set<Annotation> getSingleSet(Map<String,Set<Annotation>> annotations)
initHTML
public static void initHTML(PrintStream html,
String title,
String link,
String linkLabel,
String description)
sortByType
public static Map<String,Set<Annotation>> sortByType(Set<String> types,
Collection<Annotation> annotations)
initHTML
public static String initHTML(String title,
String description)
printMatchData
public static void printMatchData(PrintStream html,
Set<String> sets,
String fileName,
File directory,
Map<String,Set<Annotation>> allwayMatches,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Set<String> classes,
IAA iaa)
throws IOException
- Throws:
IOException
printNonmatchData
public static void printNonmatchData(PrintStream html,
Set<String> sets,
String fileName,
File directory,
Map<String,Set<Annotation>> allwayNonmatches,
AnnotationSpanIndex spanIndex,
Map<Annotation,String> annotationTexts,
Map<Annotation,String> annotationTextNames,
Set<String> classes,
IAA iaa)
throws IOException
- Throws:
IOException
printPairwiseAgreement
public static void printPairwiseAgreement(PrintStream html,
Set<String> sets,
Map<String,Map<String,Set<Annotation>>> pairwiseMatches,
Map<String,Map<String,Set<Annotation>>> pairwiseNonmatches,
NumberFormat percentageFormat)