From f86e82ea27718c5dbdb44ea905ecbdc93bf5fc54 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Mon, 18 May 2020 17:27:53 +0200 Subject: [PATCH] Fixed serRoot action when sentence segmentation is gold --- reading_machine/src/Action.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reading_machine/src/Action.cpp b/reading_machine/src/Action.cpp index 92b44a3..428b417 100644 --- a/reading_machine/src/Action.cpp +++ b/reading_machine/src/Action.cpp @@ -689,7 +689,7 @@ Action Action::setRootUpdateIdsEmptyStackIfSentChanged() auto apply = [](Config & config, Action & a) { int lineIndex = config.getWordIndex(); - int rootIndex = -1; + int rootIndex = lineIndex; int lastSentId = -1; int firstIndexOfSentence = lineIndex; -- GitLab