Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chained tokenizer creation API. #294

Merged
merged 4 commits into from
Sep 15, 2024

Conversation

teo-tsirpanis
Copy link
Owner

The ChainedTokenizerBuilder<TChar> class was removed. Creating chained tokenizers is now done by passing a sequence of ChainedTokenizerComponent<TChar>s, which are a discriminated between a tokenizer, a tokenizer factory, and the default tokenizer.

This is less complicated and is already emulated in the F# API. The only advantage of the previous API was preventing the existence of empty chains, but it's too much hassle for little benefit. Passing an empty array/span now throws.

Copy link

sonarcloud bot commented Sep 15, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
60.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@teo-tsirpanis teo-tsirpanis merged commit 3e80d26 into mainstream Sep 15, 2024
4 of 5 checks passed
@teo-tsirpanis teo-tsirpanis deleted the tokenizer-creation-update branch September 15, 2024 01:20
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.

1 participant