This commit is contained in:
Jonathan Berant 2017-04-03 15:08:46 +03:00
parent 99c23f47db
commit 60b1102a49
2 changed files with 2 additions and 2 deletions

2
run
View File

@ -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(

View File

@ -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)) {