Skip to content

expose DocLang special-token vocabulary - #174

Merged
vagenas merged 1 commit into
mainfrom
expose-doclang-tokens
Aug 13, 2026
Merged

expose DocLang special-token vocabulary#174
vagenas merged 1 commit into
mainfrom
expose-doclang-tokens

Conversation

@vagenas

@vagenas vagenas commented Aug 13, 2026

Copy link
Copy Markdown
Member
  • Add doclang.tokenization.get_special_tokens(), a spec.md-derived list of special tokens ready to plug into any tokenizer's added-tokens API
  • Drop / from spec.md's Token vocabulary table: it contradicted the custom-vocabulary namespacing guidance stated a few paragraphs earlier, and a properly namespaced example already exists elsewhere in the spec
  • Test the vocabulary against spec.md's own table so the two can't drift

- Add doclang.tokenization.get_special_tokens(), a spec.md-derived list of
  special tokens ready to plug into any tokenizer's added-tokens API
- Drop <smiles>/</smiles> from spec.md's Token vocabulary table: it
  contradicted the custom-vocabulary namespacing guidance stated a few
  paragraphs earlier, and a properly namespaced example already exists
  elsewhere in the spec
- Test the vocabulary against spec.md's own table so the two can't drift

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
@vagenas
vagenas requested a review from dolfim-ibm August 13, 2026 09:36

@dolfim-ibm dolfim-ibm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@vagenas
vagenas merged commit 6d3b3d3 into main Aug 13, 2026
10 checks passed
@vagenas
vagenas deleted the expose-doclang-tokens branch August 13, 2026 11:32
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.

2 participants