From 372de370c1a3330bc6df84a934ce5b8a4f0933b8 Mon Sep 17 00:00:00 2001 From: Robert Bossy Date: Tue, 25 Jun 2024 17:04:19 +0200 Subject: [PATCH] fixed bug in ctx:words-after --- .../alvisnlp/bibliomefactory/library/ContextLibrary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alvisnlp-bibliome/src/main/java/fr/inra/maiage/bibliome/alvisnlp/bibliomefactory/library/ContextLibrary.java b/alvisnlp-bibliome/src/main/java/fr/inra/maiage/bibliome/alvisnlp/bibliomefactory/library/ContextLibrary.java index c7616c6f..9827d4e2 100644 --- a/alvisnlp-bibliome/src/main/java/fr/inra/maiage/bibliome/alvisnlp/bibliomefactory/library/ContextLibrary.java +++ b/alvisnlp-bibliome/src/main/java/fr/inra/maiage/bibliome/alvisnlp/bibliomefactory/library/ContextLibrary.java @@ -135,7 +135,7 @@ public static final String wordsAfter(EvaluationContext ctx, Element elt, String return ""; } Layer layer = sec.getLayer(layerName); - Layer words = layer.before(a.getStart()); + Layer words = layer.after(a.getEnd()); if (words.isEmpty()) { return ""; }