Skip to content

GrammarViz 3.0.7

Latest

Choose a tag to compare

@seninp seninp released this 04 Dec 08:08
d63046c

Maven Central: net.seninp:grammarviz2:3.0.7. The self-contained jar (GUI main class) is attached: java -Xmx4g -jar grammarviz2-3.0.7-jar-with-dependencies.jar.

Fixed

  • RRA with RePair never exited. GrammarVizAnomaly -alg RRA -g REPAIR (and RRAPRUNED)
    printed its discords and then hung: the parallel SAX pool's threads are not daemons and were
    never shut down. Every ParallelSAXImplementation is now shut down after use. The GUI no
    longer leaks two pool threads on every RePair run.
  • -o accepts an absolute prefix. The output prefix was always appended to the working
    directory, so an absolute path failed with FileNotFoundException. A relative prefix still
    resolves against the working directory.
  • --help and the bare commands. GrammarVizAnomaly -h threw an exception instead of
    printing the usage text. TS2SequiturGrammar printed its usage text and then threw a
    NullPointerException, with no arguments and with -h. Both now print the usage and exit.
  • Release content: density_curve.txt (1.6 MB, written by the GUI while testing #71) was
    committed to the repository root and shipped in the 3.0.6 source. It is removed.

Changed

  • The GUI's grammar option reads "RePair", the spelling used across the stack (was "Re-Pair").
  • Dependencies: jmotif-gi 2.1.1. Its GIAlgorithm.toString() returns "RePair", so the
    CLI usage text lists -g values as [Sequitur, RePair].