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

Allowed API to set different corpora for different simultaneous jobs #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grvsmth
Copy link

@grvsmth grvsmth commented May 17, 2016

The current version of ICE stores the selected corpus in edu.nyu.jet.uicomps.Ice.selectedCorpus (and Ice.selectedCorpusName) and refers to that whenever it needs to.

This is a problem if we want the user to be able to run multiple operations at the same time. For example, the user may want to start a long preprocessing or indexing job on one corpus, and while that job is running view the extracted entities or patterns, or compile entity sets or relations, on another corpus. In order to do that, they need to change the selectedCorpus.

In the current Swing system, changing the selectedCorpus in the middle of a job can wreak all kinds of havoc. If the user starts preprocessing Corpus A and then selects Corpus B to view entities, the preprocessor will switch in the middle to preprocessing Corpus B, abandoning the preprocessing of Corpus A, wasting CPU cycles, corrupting the cache and ultimately crashing.

These updates make it so that each job has a foreground corpus assigned to it that doesn't change over the course of the job.

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