Skip to content

Commit

Permalink
Fix: METEOR localization error for language which handle floats diffe…
Browse files Browse the repository at this point in the history
…rently. (#9)
  • Loading branch information
Labbeti committed Nov 15, 2023
1 parent 1b26ee4 commit e270325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aac_metrics/functional/meteor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ def meteor(
f"Invalid argument {language=}. (expected one of {SUPPORTED_LANGUAGES})"
)

# TODO : override localization settings ? -Duser.country=US -Duser.language=en ?
# Note: override localization to avoid errors due to double conversion (https://github.com/Labbeti/aac-metrics/issues/9)
meteor_cmd = [
java_path,
"-Duser.country=US",
"-Duser.language=en",
"-jar",
f"-Xmx{java_max_memory}",
meteor_jar_fpath,
Expand Down

0 comments on commit e270325

Please sign in to comment.