Jet.Scorer
Class SGMLScorer

java.lang.Object
  extended byJet.Scorer.SGMLScorer

public class SGMLScorer
extends java.lang.Object

The SGMLScorer class analyzes the homology of two Documents according to one type of their annotations. More specifically, it compares an automatically generated response Document with a key Document, giving out the correctness of the response file in percentage to the key file. It also highlights the annotations which differ in the two files.


Field Summary
 Document doc1
           
 Document doc2
           
 java.util.Vector mismatch1
           
 java.util.Vector mismatch2
           
 int numOfMatchingAttrs
           
 int numOfMatchingTags
           
 int numOfTagsInDoc1
           
 int numOfTagsInDoc2
           
 int totalMatchingAttrs
           
 int totalMatchingTags
           
 int totalTagsInDoc1
           
 int totalTagsInDoc2
           
 
Constructor Summary
SGMLScorer(Document doc1, Document doc2)
          Construct an SGMLScorer to compare two Documents.
 
Method Summary
 void match(java.lang.String annType)
          Compares documents doc1 and doc2 with respect to annotations of type annType.
 void match(java.lang.String annType1, java.lang.String annType2)
          Compares annotations of type annType1 of document doc1 with annotations of type annType2 of document doc2.
 java.lang.String report()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc1

public Document doc1

doc2

public Document doc2

mismatch1

public java.util.Vector mismatch1

mismatch2

public java.util.Vector mismatch2

numOfTagsInDoc1

public int numOfTagsInDoc1

numOfTagsInDoc2

public int numOfTagsInDoc2

numOfMatchingTags

public int numOfMatchingTags

numOfMatchingAttrs

public int numOfMatchingAttrs

totalTagsInDoc1

public int totalTagsInDoc1

totalTagsInDoc2

public int totalTagsInDoc2

totalMatchingTags

public int totalMatchingTags

totalMatchingAttrs

public int totalMatchingAttrs
Constructor Detail

SGMLScorer

public SGMLScorer(Document doc1,
                  Document doc2)
Construct an SGMLScorer to compare two Documents.

Parameters:
doc1 - SGML file 1, or the key file
doc2 - SGML file 2, or the response file
Method Detail

match

public void match(java.lang.String annType)
Compares documents doc1 and doc2 with respect to annotations of type annType.


match

public void match(java.lang.String annType1,
                  java.lang.String annType2)
Compares annotations of type annType1 of document doc1 with annotations of type annType2 of document doc2.


report

public java.lang.String report()