HeidelTime / heideltime

A multilingual, cross-domain temporal tagger developed at the Database Systems Research Group at Heidelberg University.
GNU General Public License v3.0
342 stars 67 forks source link

how to use the auto-portuguese #64

Open arademaker opened 6 years ago

arademaker commented 6 years ago

I downloaded from https://github.com/HeidelTime/heideltime/releases the heideltime-standalone-2.2.1.tar.gz. How to use the auto-portuguese?

JannikStroetgen commented 6 years ago

If you want to run it from the command line, set the language parameter to "auto-portuguese", e.g., when processing a portuguese news article from October 1, 2016: java -jar de.unihd.dbs.heideltime.standalone.jar -pos NO -l auto-portuguese -dct 2016-10-01

If you want to set the language programmatically, do so during the initialization step: // other settings OutputType outtype = OutputType.XMI; POSTagger postagger = POSTagger.NO; String conffile = "lib/config.props"; // set the languae here: HeidelTimeStandalone hsNews = new HeidelTimeStandalone(Language.AUTO-PORTUGUESE, DocumentType.NEWS, outtype, conffile, postagger);

Please set page 14 of the Manual.pdf, for the other parameters and for how you can then continue with processing documents.