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

OPENNLP-719: Restores the “type” argument in NameFinderEventStream #33

Closed
wants to merge 6 commits into from

Conversation

wcolen
Copy link
Member

@wcolen wcolen commented Jan 4, 2017

See issue OPENNLP-719

@@ -136,6 +140,20 @@ public NameFinderEventStream(ObjectStream<NameSample> dataStream) {
return generateEvents(tokens, outcomes, contextGenerator).iterator();
}

private Span[] overrideDefaultType(Span[] names) {
// need to copy because Span is not modifiable
Span[] converted = new Span[names.length];
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to create a new array here? Would it make sense to do this in place in the original array?

@wcolen
Copy link
Member Author

wcolen commented Jan 5, 2017

The PR has conflicts that we can not solve. Will close it and start another one.

@wcolen wcolen closed this Jan 5, 2017
@wcolen wcolen deleted the 719 branch January 5, 2017 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants