divvun / libdivvun

lib for running gramcheck and other pipelines + cli; modules for CG→spelling, CG→feedback, tagging blanks
https://giellalt.github.io/proof/gramcheck/GrammarCheckerDocumentation.html
GNU General Public License v3.0
9 stars 1 forks source link

blanktag tag order differs on different systems #47

Closed unhammer closed 3 years ago

unhammer commented 3 years ago

<TinoDidriksen> tag order differs in test output - this is against HFST built with external OpenFST and Foma, and -std=c++17. Does something maybe rely on the order of unordered_set

make[5]: Entering directory '/build/libdivvun-0.3.10+g493~9db3c2a6-1~impish1/test/blanktag'
FAIL: run
===========================================================
   Divvun gramcheck 0.3.10: test/blanktag/test-suite.log
===========================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ./run
===========

3,4c3,4
<   ")" RPAREN @EOP <firstWord> <spaceBeforeParenEnd>
<   ")" RPAREN @EMO <firstWord> <spaceBeforeParenEnd>
---
>   ")" RPAREN @EOP <spaceBeforeParenEnd> <firstWord>
>   ")" RPAREN @EMO <spaceBeforeParenEnd> <firstWord>
10,11c10,11
<   "be" V Pret "<was>" <firstWord> <firstWordOfParagraph>
<       "it" Prn 3Sg Neut "<T>" <firstWord> <firstWordOfParagraph>
---
>   "be" V Pret "<was>" <firstWordOfParagraph> <firstWord>
>       "it" Prn 3Sg Neut "<T>" <firstWordOfParagraph> <firstWord>
FAIL run (exit status: 1)

============================================================================
Testsuite summary for Divvun gramcheck 0.3.10
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/blanktag/test-suite.log
Please report to unhammer+apertium@mm.st
============================================================================
make[5]: Leaving directory '/build/libdivvun-0.3.10+g493~9db3c2a6-1~impish1/test/blanktag'
unhammer commented 3 years ago

https://github.com/hfst/hfst/blob/2a51e9dd9b28c95d3f9f8cdcc81b766e1c369699/libhfst/src/HfstDataTypes.h#L115 it's a set in hfst