Skip to content

Conversation

@AdhamAbozaeid
Copy link

@AdhamAbozaeid AdhamAbozaeid commented Nov 13, 2018

3 patches to add more stability to KnowledgeExtractor on Windows:
1- Modified ClingoExecutor.callASPusingFilesList() to use runtime to execute clingo on Windows.
2- Modified KnowledgeExtractor to save processed file names in file knowextfrom. This way the code can rerun on the same file set safely same way SentenceParser does.
3- Code was hanging very frequently after processing 3~4 files. This was root caused to come from the runtime process that calls clingo but sometimes never returns. Might be a problem specific to the Windows version of clingo since you could run it for longer time, but it's safer to add a timeout while calling process.waitfor() for all OSs anyways

Thanks,
Adham

Added support to run Running KnowledgeExtractor from Windows by adding
clingo 4.5.4 for win64 and modifying the system call in ClingoExecutor

Signed-off-by: Adham Abozaeid <adham.abozaeid@gmail.com>
Append processed file name in property knowextfrom. Code to skip processed
file are already there.
Also close bufferedReader in getSetOfDoneFiles()

Signed-off-by: Adham Abozaeid <adham.abozaeid@gmail.com>
Execution hangs regularly while calling clingo. This can be workedaround
by timing out while waiting for clingo process to execute, and skip the
line if it timed out.
Using 5sec timeout for now

Signed-off-by: Adham Abozaeid <adham.abozaeid@gmail.com>
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

Successfully merging this pull request may close these issues.

1 participant