Skip to content

Commit

Permalink
Merge cc621a2 into 56f0092
Browse files Browse the repository at this point in the history
  • Loading branch information
kowey committed May 21, 2015
2 parents 56f0092 + cc621a2 commit 189b4f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions attelo/decoding/astar.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,12 @@ class DiscourseBeamSearch(DiscourseSearch, BeamSearch):


class Heuristic(Enum):
"""
What sort of right frontier constraint to apply during decoding:
"""Heuristic cost to guide A* search with
* simple: every relation is treated as subordinating
* full: (falls back to simple in case of unlabelled prediction)
* zero: see DiscourseState.h_zero
* max: see DiscourseState.h_best_overall
* best: see DiscourseState.h_best
* average: see DiscourseState.h_average
"""
zero = 0
max = 1
Expand Down
2 changes: 1 addition & 1 deletion attelo/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def build_confusion_matrix(dpack, predictions):
# we want the confusion matrices to have the same shape regardless
# of what labels happen to be used in the particular fold
# pylint: disable=no-member
labels = numpy.arange(1, len(dpack.labels) + 1)
labels = numpy.arange(0, len(dpack.labels))
# pylint: enable=no-member
return confusion_matrix(dpack.target, pred_target, labels)

Expand Down

0 comments on commit 189b4f5

Please sign in to comment.