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

Minor improvements for NER and MD #570

Merged
merged 3 commits into from
Oct 19, 2017
Merged

Minor improvements for NER and MD #570

merged 3 commits into from
Oct 19, 2017

Conversation

Slash0BZ
Copy link
Member

support reading brown-clusters from local resource in ner.ExpressiveFeatures.BrownClusters
add a helper function in ColumnFormatReader that transforms TextAnnotation to ColumnFormat

support reading brown-clusters from local resource
if (!checker.exists()){
bcFilePath = pathsToClusterFiles.elementAt(i);
}
InputStream is = new FileInputStream(bcFilePath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Slash0BZ this can could confusions. (for people thay may think that it is reading from datastore, but it is in fact reading locally).
How about your add a switch to the configurator (say boolean readFromDataStore, with default value of true) and use it here? (rather than checking datastore to see if the file exists or not).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that makes more sense.

@danyaljj
Copy link
Member

Looks good to me. Merging.

@danyaljj danyaljj merged commit f82f8c5 into CogComp:master Oct 19, 2017
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.

2 participants