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

Add Examples #10

Closed
valencik opened this issue Aug 3, 2022 · 0 comments · Fixed by #11
Closed

Add Examples #10

valencik opened this issue Aug 3, 2022 · 0 comments · Fixed by #11
Milestone

Comments

@valencik
Copy link
Collaborator

valencik commented Aug 3, 2022

Building a Pipe that uses a tokenizer:

  otherStream => {
    val tokenizer = AnalyzerBuilder.default
      .withLowerCasing
      .withASCIIFolding
      .withPorterStemmer
      .tokenizer[IO]
    Stream.resource(tokenizer).flatMap(f => otherStream.evalMap(x => f(x)))
  }

Note: Try to avoid calling .tokenizer in a loop

@valencik valencik mentioned this issue Aug 6, 2022
@valencik valencik added this to the first release milestone Aug 6, 2022
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 a pull request may close this issue.

1 participant