public class TagDiff
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TagDiff.TagCount
Class to hold counts of correct and incorrect tags.
|
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.String,TagDiff.TagCount> |
incorrectTags
Map of incorrect tags and counts.
|
protected static java.util.Map<java.lang.String,TagDiff.TagCount> |
tagCounts
Map of tags along with correct and incorrect counts.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TagDiff()
Allow overrides but not instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
compareTaggedTexts(java.lang.String taggedFile1,
int tagColFile1,
java.lang.String taggedFile2,
int tagColFile2)
Compare expected and generated tags.
|
static void |
main(java.lang.String[] args)
Main program.
|
protected static void |
updateTagCount(java.util.Map<java.lang.String,TagDiff.TagCount> map,
java.lang.String tag,
int correct,
int incorrect,
int comparisonType)
Update tag counts.
|
protected static java.util.Map<java.lang.String,TagDiff.TagCount> incorrectTags
protected static java.util.Map<java.lang.String,TagDiff.TagCount> tagCounts
public static void main(java.lang.String[] args)
protected static void updateTagCount(java.util.Map<java.lang.String,TagDiff.TagCount> map, java.lang.String tag, int correct, int incorrect, int comparisonType)
map - The map to update.tag - The tag whose counts should be updated.correct - # of correct tags.incorrect - # of incorrect tags.protected static void compareTaggedTexts(java.lang.String taggedFile1,
int tagColFile1,
java.lang.String taggedFile2,
int tagColFile2)
throws java.net.MalformedURLException,
java.io.IOException
taggedFile1 - The "correctly" tagged file.taggedFile2 - The "incorrectly" tagged file.java.net.MalformedURLExceptionjava.io.IOException