renepickhardt / generalized-language-modeling-toolkit

Generalized Language Modeling toolkit
http://glm.rene-pickhardt.de
52 stars 17 forks source link

Execute Program if outputdirectory exists #61

Closed renepickhardt closed 9 years ago

renepickhardt commented 10 years ago

the program glmtk-count should not stop execution if the outputrepo exists but rather continue execution

lschmelzeisen commented 10 years ago

I disagree. As an outputdir does not have to be specifically specified by an user, it is easy to unintentionally overwrite parsing results from a previous run. So if a user explicitly wants to overwrite he should just delete the directory.

lschmelzeisen commented 10 years ago

Ah now I realize what you meant: You want to continue execution from an older state.

renepickhardt commented 10 years ago

or at least give me -f = force option because it is annoying to do this again and again in debugging and development.

On Tue, Jul 8, 2014 at 2:00 PM, Lukas Schmelzeisen <notifications@github.com

wrote:

Ah now I realize what you meant: You want to continue execution from an older state.

— Reply to this email directly or view it on GitHub https://github.com/renepickhardt/generalized-language-modeling-toolkit/issues/61#issuecomment-48326957 .

lschmelzeisen commented 9 years ago

New API deals with this problem in a different way. If outputdir already exists, it tries to continue operation from the previous state.