Skip to content

Bug: Output timeml to file does not work #93

@narnold-cl

Description

@narnold-cl

Hey there,

it seems that HeidelTime Standalone does not treat the last argument as an output path:

java -jar de.unihd.dbs.heideltime.standalone.jar data/heideltime_test_text_1.txt -c config.props -pos no -dct 2021-12-20 -t news output.timeml
java.io.FileNotFoundException: output.timeml (No such file or directory)
	at java.io.RandomAccessFile.open0(Native Method)
	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:124)
	at de.unihd.dbs.heideltime.standalone.HeidelTimeStandalone.main(HeidelTimeStandalone.java:768)

Creating the desired output file (touch output.timeml) removes the error but still leads to output to stdout, albeit an empty timeml:

<?xml version="1.0"?>
<!DOCTYPE TimeML SYSTEM "TimeML.dtd">
<TimeML>

</TimeML>

Only removing the last argument altogether leads to correct timeml output to stdout:

<?xml version="1.0"?>
<!DOCTYPE TimeML SYSTEM "TimeML.dtd">
<TimeML>
This is a text document. <TIMEX3 tid="t1" type="DATE" value="2021-12-20">Today</TIMEX3> I woke up at <TIMEX3 tid="t2" type="TIME" value="2021-12-20T08:00">8 am.</TIMEX3> I went to bed at <TIMEX3 tid="t3" type="TIME" value="2021-12-20T02:00">2 am.</TIMEX3>  

</TimeML>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions