Skip to content

Commit

Permalink
防御性代码
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Aug 19, 2015
1 parent 0bfceb6 commit ea4b30d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public final List<Pair<String, Double>> predict(Collection<String> context)
*/
public final double[] eval(String[] context, double[] outsums)
{
assert context != null;
int[] scontexts = new int[context.length];
for (int i = 0; i < context.length; i++)
{
Expand Down

0 comments on commit ea4b30d

Please sign in to comment.