Final paper and small tokenizer fix - #8
Merged
Merged
Conversation
- Skip malformed sequences during training instead of aborting the run, and map malformed input to <unk> at encode time so it stays detectable via unk_rate rather than raising mid-batch. - Debit both constituents when a merge is applied so *_freq.json reflects accurate post-merge counts; primitive keys are retained for coverage. - Drop the per-merge full copy of pair_counts (never read) and reuse untouched sequences by reference during rebuild. Output is unchanged; merge order stays pinned for reproducibility. - Document that encoding is greedy longest-match, not a replay of learned merge order, and that both phases share it. - Remove dead two-letter metal branches from SMILES_RE (always bracketed in canonical SMILES); verified identical splits on the shipped vocab. - Correct the misleading "unbalanced parens = defect" comment: boundary- crossing SMILES tokens are inherent to APE and match the paper. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
No description provided.