mirror of https://github.com/percyliang/sempre
minor
This commit is contained in:
parent
99c23f47db
commit
60b1102a49
2
run
2
run
|
|
@ -711,7 +711,7 @@ addMode('tables', 'QA on HTML tables', lambda { |e| l(
|
|||
l(
|
||||
o('combineFromFloatingParser'),
|
||||
sel(:unseen, unbalancedTrainDevSplit, l()),
|
||||
o('maxTrainIters', 3),
|
||||
o('Learner.maxTrainIters', 3),
|
||||
o('showValues', false), o('showFirstValue'),
|
||||
nil),
|
||||
l(
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ final class ReinforcementParserState extends AbstractReinforcementParserState {
|
|||
sampledDerivation.incrementLocalFeatureVector(-pdsAndProbability.getFirst().probSum, counts);
|
||||
if (parser.verbose(3))
|
||||
SempreUtils.logMap(counts, "agenda item gradient");
|
||||
ReinforcementUtils.addToDoubleMap(stateSequenceExpectedCounts, counts, parser.searchPrefix); // upate the gradient incrementally
|
||||
ReinforcementUtils.addToDoubleMap(stateSequenceExpectedCounts, counts, parser.searchPrefix); // update the gradient incrementally
|
||||
}
|
||||
// only after update of params we can change the chart and the agenda
|
||||
if (addToBoundedChart(sampledDerivation)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue