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-887: Replace the Cache class with a LinkedHashMap #9

Closed
wants to merge 1 commit into from
Closed

OPENNLP-887: Replace the Cache class with a LinkedHashMap #9

wants to merge 1 commit into from

Conversation

smarthi
Copy link
Member

@smarthi smarthi commented Dec 19, 2016

No description provided.

for (int c = 0; c < scores.length; c++) {
temp_scores[c] = scores[c];
}
System.arraycopy(scores, 0, temp_scores, 0, scores.length);
Copy link
Member

Choose a reason for hiding this comment

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

We did reject this change in the past, but now this seems to run just as fast as the for loop.

+1 to keep this

@@ -33,7 +33,7 @@
* outcomes, all of which sum to 1.
*
**/
public double[] eval(String[] context);
double[] eval(String[] context);
Copy link
Member

Choose a reason for hiding this comment

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

This file should not be changed with the commit. There are many cases where we have a redundant public modifier. If there is a desire to change that, it would be best to use a re-factoring tool and do this once for the entire code base.

@asfgit asfgit closed this in 4da7f4c Dec 19, 2016
@smarthi smarthi deleted the OEPNNLP-887 branch December 19, 2016 21:50
kinow added a commit to kinow/opennlp that referenced this pull request May 14, 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
2 participants