|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsemeval.idrepair.IdRepairer
public class IdRepairer
IdRepairer can 'repair' the values of the 'id' and 'idref' attribute in a
SalsaXML Corpus
, so that the salto tool will be able to merge
them.
Constructor Summary | |
---|---|
IdRepairer(Corpus corpus)
Default constructor that takes the SalsaXML Corpus as an
argument. |
Method Summary | |
---|---|
java.lang.String |
getMappingOverview()
Returns an overview of which old Ids have matched to which new Ids. |
static void |
main(java.lang.String[] args)
Main class that repairs a corpus. |
void |
repair()
This method repairs the 'ids' in a corpus. |
void |
writeMappingToFile(java.lang.String fileName)
Writes the result of getMappingOverview() into a file with
the specified name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdRepairer(Corpus corpus)
Corpus
as an
argument.
corpus
- Method Detail |
---|
public java.lang.String getMappingOverview()
repair()
method first.
public static void main(java.lang.String[] args)
args
- public void repair()
public void writeMappingToFile(java.lang.String fileName) throws java.io.IOException
getMappingOverview()
into a file with
the specified name.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |