Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use the auto-portuguese #64

Open
arademaker opened this issue Oct 1, 2017 · 1 comment
Open

how to use the auto-portuguese #64

arademaker opened this issue Oct 1, 2017 · 1 comment

Comments

@arademaker
Copy link

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

@JannikStroetgen
Copy link
Member

JannikStroetgen commented Oct 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants