Skip to content

lingrep 0.10.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 04:59

lingrep 0.10.0

Patterns in lingrep 0.10.0 can match dependency paths and SUD deep features.
ling diff compares two match runs, ling tokenize exports CoNLL-U, and
ling check finds unsatisfiable definitions without a corpus. Rebuild count
tables: definitions that use &, measure, or same_as publish fewer nested
matches than in 0.9.

curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSLO https://github.com/borh/lingrep/releases/download/v0.10.0/install.sh
sh install.sh

Install the Python bindings with python -m pip install lingrep==0.10.0.

Dependency paths, SUD deep features and span-layer trees

  • -[+ LABELS]-> matches a path of basic dependency edges, and the first or
    last edge can be tested separately.
    Basic paths
  • Edge tests match SUD deep features such as comp:aux@pass on basic or
    enhanced edges, and deep(…) projects them.
    SUD deep features
  • tree(LAYER) measures dependency trees in a named span layer.
    Occurrence measurements

Compare runs, export CoNLL-U and check catalogs

  • ling diff compares saved match runs over the same corpus by span, named
    role, or complete record, and writes lingrep.diff/v1 JSONL.
    Match comparison guide
  • ling tokenize --output-format conllu exports direct or prepared input as
    CoNLL-U.
    CoNLL-U export guide
  • ling --json summarize --by-window N counts occurrences per document-local
    token window and writes lingrep.window-counts/v1.
    Window counts guide
  • ling check reports unsatisfiable token tests and definitions.
    --containment compares which spans definitions can publish,
    --verify-examples explains failed examples, and
    --propose-counterexamples FILE finds sentences that match after one
    constraint is removed.
    Catalog checks

Web interface

  • The Workbench compares the edited pattern with the last search and opens
    differing occurrences in the reader.
  • The Sample debugger verifies catalog examples and counterexamples, shows
    which pattern element consumed each token, and can analyze edited text with
    a configured GiNZA, spaCy, Stanza, protocol adapter, or Sudachi analyzer.
    Live sample analyzer setup
  • The Question page groups hits by work, with work totals and source
    positions, and sorts across all indexed hits.
  • The web pages have a dark theme, skip links, and Tab navigation between the
    editor and adjacent controls.
  • The Japanese interface uses セクション for a document section, 一致箇所 for
    a match, and 出現 for a counted occurrence.

GiNZA and spaCy transformer models on Apple Silicon

A spaCy or GiNZA transformer model runs on Apple Silicon with
backend = "mps". lingrep-spacy-setup selects it by default when the
environment's PyTorch reports MPS available. When MPS is unavailable, an
analyzer set up for mps fails at startup.
External analyzer setup

Upgrade from 0.9

  • Rebuild count tables. The matcher revision is lingrep-core-matcher/v3, and
    ling rejects a table written by an earlier release. A definition that
    uses &, measure, or same_as drops a span when another span from the
    same definition starts earlier and ends later.
    Match publication rules
  • patterns/sf-experimental.lx counts overlapping definitions. Pass
    --overlaps longest to select one record per overlapping set.
  • Rebuild BCCWJ artifacts to restore leading zeros in genre codes.
  • Set --md-recover-conversion-artifacts when you build a corpus. ling
    rejects it with --corpus.
  • Rust callers of the corpus API read through PreparedTokenReader for
    random access and PreparedSentenceSource for sequential reads, and
    MatchSink implementations declare an associated error type.

This release updates url to 2.5.9, which fixes RUSTSEC-2026-0592.

Adapter wheels use version 0.10.0. See the
changelog for the complete list of changes.