Skip to content

Extend model's weight control#380

Merged
akosthekiss merged 1 commit intomasterfrom
quant-prob-cli
Jan 26, 2026
Merged

Extend model's weight control#380
akosthekiss merged 1 commit intomasterfrom
quant-prob-cli

Conversation

@renatahodovan
Copy link
Owner

Until now, only the probabilities of alternation alternatives could be defined externally through a JSON file. With this change, the scope of model weight control is broadened to include quantifiers as well. The JSON lookup is now split into two sections: alts for alternation alternatives and quants for quantifiers. The file is still provided through the existing --weights command-line option.

This commit also updates the C++ implementation with this new feature, along with adding the missing CLI support and parsing logic to match the Python version.

Until now, only the probabilities of alternation alternatives could be
defined externally through a JSON file. With this change, the scope of
model weight control is broadened to include quantifiers as well. The
JSON lookup is now split into two sections: `alts` for alternation
alternatives and `quants` for quantifiers. The file is still provided
through the existing `--weights` command-line option.

This commit also updates the C++ implementation with this new feature,
along with adding the missing CLI support and parsing logic to match
the Python version.
@coveralls
Copy link

Coverage Status

coverage: 83.957% (-0.3%) from 84.246%
when pulling d547322 on quant-prob-cli
into 14947b3 on master.

Copy link
Collaborator

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@akosthekiss akosthekiss merged commit a2c4528 into master Jan 26, 2026
98 of 102 checks passed
@akosthekiss akosthekiss deleted the quant-prob-cli branch January 26, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants