Skip to content

Commit

Permalink
fix: detection of multiply annotated tokens working again
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagnap committed Jul 10, 2024
1 parent 88f7970 commit 7ec9a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/snik/tag/DocxLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ public Collection<Clazz> getClasses() {
comment.getContent().add(commentText);
CommentReference commentRef = factory.createRCommentReference();
run.getContent().add(commentRef);
commentRef.setId(BigInteger.valueOf(commentId));
commentRef.setId(BigInteger.valueOf(commentId));
*/
Clazz clazz = new Clazz(label, labelToLocalName(label), tc.subtop);
//System.out.println(text+" "+ clazz);
if (processedLabels.contains(label)) {
classes
.stream()
.filter(c -> c.subtop() != clazz.subtop())
.filter(c -> c.labels().contains(label) && (!c.subtop().equals(clazz.subtop())))
.findAny()
.ifPresent(
c -> {
Expand Down

0 comments on commit 7ec9a8e

Please sign in to comment.