Repository navigation
feat(fold): decide a token's script three ways and keep եւ and և as set - #30
Merged
Merged
Conversation
Issue #17 (brief 014 Stage 3). Every token is now read as Armenian, Latin or Cyrillic before a glyph in it is written: a token with an Armenian letter folds the Cyrillic copies of the Latin lookalikes it already folded (о, О, Н) the same way; a token without one is Latin or Cyrillic as before. The h, o and colon folds never touch a Cyrillic token: о stays о, a Latin o in one is written о, a colon stays, and a Latin h beside unshared Cyrillic letters is a token of two scripts. եւ and և are one word printed two ways. The fold never chooses between them, and the word list's look-up key reads them as one, so a word listed in either form is accepted in both and never corrected from the page's form to the other's. Measured on v7's readings of the eighteen evaluation registers: 43 Armenian tokens carried a Cyrillic letter, none a shared glyph, so the new entries move no register; nine tokens matched the page's word only with the two forms scored as one, which the metric already does; the key change moved nothing on the 21,574 held-out crops. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17 (brief 014, Stage 3).
Three scripts, one decision per token. Every token is read as Armenian, Latin or Cyrillic (or left undecided) before a glyph in it is written. A token with an Armenian letter is Armenian whatever else it holds, and now folds the Cyrillic copies of the Latin lookalikes it already folded:
о/О→օ/Օ,Н→Հ. A token without one is Latin or Cyrillic by its unshared letters or its context, as PR #27 made it. Theh,oand colon folds were reviewed against Cyrillic tokens and never touch one:оstaysо, a Latinoin a Cyrillic word is writtenоrather thanօ, a colon after a Russian word stays a colon, and a Latinhbeside unshared Cyrillic letters makes a token of two scripts that is left as read. Each case has a test.եւ and և. One word printed two ways; the ground truth keeps what the page prints. The fold never chooses between them (both are Armenian for the token's script, neither is rewritten), and the word list's look-up key (
lexicon.core) now reads them as one, so a word listed in either form is accepted in both and the decoder never corrects a page's form to the other's.Measured on v7's saved readings of the eighteen evaluation registers (raw readings kept under the trainer's
runs/v7-b014/readings-registers/):вforտsix times on the dictionary, is a shape confusion for training.եւorև, nine matched the page's word only once the two forms were scored as one (Toranian 7, Khatisian 2); none the other way. The metric already scores them so.և, 30 withեւ; classical: 19,893 withեւ, 569 withև), so the rule is there for the word that is only listed one way.hare chemical formulae the transcripts also set in two scripts (С6H6) and one shape misread (Армян0hой).104 tests, ruff clean. A
feat, so the release is 0.11.0.🤖 Generated with Claude Code