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

[MRG] DOC fix A* heuristic docs #32

Merged
merged 1 commit into from
May 27, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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