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

Implement Ranges #19

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Implement Ranges #19

merged 1 commit into from
Jun 24, 2024

Conversation

clipperhouse
Copy link
Owner

@clipperhouse clipperhouse commented Jun 22, 2024

New enumerator to get the ranges (boundaries) of the tokens.

var example = "Hello and good day to you";
var words = Tokenizer.GetWords(example);
var ranges = words.Ranges;

foreach (var range in ranges) {
    var word = example[range];
}

@clipperhouse clipperhouse merged commit e11f7f2 into main Jun 24, 2024
1 check passed
@clipperhouse clipperhouse deleted the ranges branch June 24, 2024 20:51
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