|
9 | 9 | from PythonVoiceCodingPlugin.library.traverse import search_upwards,search_upwards_log, find_matching,match_node, find_all_nodes,search_upwards_for_parent |
10 | 10 |
|
11 | 11 | from PythonVoiceCodingPlugin.queries.abstract import SelectionQuery |
12 | | -from PythonVoiceCodingPlugin.queries.tiebreak import tiebreak_on_lca |
| 12 | +from PythonVoiceCodingPlugin.queries.tiebreak import tiebreak_on_lca,tiebreak_on_visual |
13 | 13 | from PythonVoiceCodingPlugin.queries.strategies import adjective_strategy,decode_abstract_vertical,translate_adjective,obtain_result |
14 | 14 |
|
15 | 15 | # |
@@ -111,7 +111,7 @@ def process_line(self,q, root ,atok, origin = None, select_node = None,tiebreak |
111 | 111 | result,alternatives = obtain_result(None,temporary) |
112 | 112 |
|
113 | 113 | if second_tiebreaker: |
114 | | - alternatives = second_tiebreaker(origin,result,alternatives) |
| 114 | + alternatives = second_tiebreaker(result,alternatives) |
115 | 115 |
|
116 | 116 |
|
117 | 117 |
|
@@ -195,7 +195,8 @@ def case_two(self,view_information,query_description, extra = {}): |
195 | 195 | tiebreaker = lambda x: tiebreak_on_lca(statement_node,origin,x), |
196 | 196 | line = nr+1, |
197 | 197 | priority = priority, |
198 | | - constrained_space = (view_information["text_point"](nr,0),view_information["text_point"](nr + 1,0)) |
| 198 | + constrained_space = (view_information["text_point"](nr,0),view_information["text_point"](nr + 1,0)), |
| 199 | + second_tiebreaker = lambda x,y : tiebreak_on_visual(row + 1,x,y) |
199 | 200 | ) |
200 | 201 | return self._backward_result(result, alternatives,build) |
201 | 202 |
|
|
0 commit comments