Skip to content

v0.2.0: Dipo

Choose a tag to compare

@lgessler lgessler released this 09 Oct 21:07
· 14 commits to master since this release
2eed3ee

IUDEX is now Dipo (the Discourse Parsing Omnibus, said like "depot"). Install it with pip install dipo.

Renamed

  • The package, import and command are dipo: import iudex is now import dipo.
  • The old iudex command still works for now, as a deprecated alias that prints a notice.
  • larc-iudex on PyPI is a stub whose only job is to install dipo. The repository moved to larc-iu/dipo, and the old address redirects.
  • Models already on the Hub load unchanged.

New: ten pretrained models trained on raw text

All ten parse plain, untokenized text end to end (segmentation and structure), and the corpora's tokenized EDU text was replaced with the original text for training (scripts/build_raw_text_data.py). Test end-to-end Full F1:

Model Corpus Full
dmrst-ettin-400m-rstdt-coarse RST-DT 53.2
gen-sr-t5gemma-2-1b-1b-rstdt-coarse RST-DT 49.6
gen-sr-gemma-4-31b-it-rstdt-coarse RST-DT 54.7
dmrst-ettin-400m-gum-12.1.0 GUM 12.1.0 45.6
gen-sr-t5gemma-2-1b-1b-gum-12.1.0 GUM 12.1.0 39.4
gen-sr-gemma-4-31b-it-gum-12.1.0 GUM 12.1.0 45.8
dmrst-xlm-roberta-base-ert Basque 27.6
dmrst-xlm-roberta-base-pcc-2.2 German 18.6
dmrst-xlm-roberta-base-prstc Persian 32.2
dmrst-xlm-roberta-base-gcdt Chinese 29.4

The two RST-DT and GUM Ettin models replace the earlier models at those names. The generative models need access to a gated base model from Google first: see the README.

Fixes for real-world text

  • Text with line breaks, headings and Windows line endings parses cleanly. DMRSTParser.predict_from_text now starts a new segment at paragraph breaks and after heading-like lines (break_at_paragraphs=False turns this off).
  • Fixed a duplicated character at a segment boundary with XLM-R models.
  • Unspaced Chinese now works: new DMRST option split_cjk_tokens tokenizes one character per token.
  • The generative parsers raise a clear error on empty input instead of returning one empty segment.
  • Model cards show a readable metrics table and a usage example in the model's own language.

Known limitation: the generative models emit an empty segment about once in 3,000, seen inside a code sample.