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 one NER example to use a spaCy model with RunInference #23035

Merged
merged 6 commits into from
Sep 8, 2022

Conversation

liferoad
Copy link
Collaborator

@liferoad liferoad commented Sep 6, 2022

Users can bring any ML model to Beam RunInference besides Pytorch and sklearn. Here we add one example to show how to use a spaCy model inside Beam RunInference to perform NER with some text strings.

@rezarokni


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • [*] Choose reviewer(s) and mention them in a comment (R: @username).
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

liferoad and others added 3 commits September 6, 2022 11:12
Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>
Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>
@liferoad
Copy link
Collaborator Author

liferoad commented Sep 7, 2022

Can someone merge this PR if it looks good?

@damccorm damccorm merged commit 70f8728 into apache:master Sep 8, 2022
dedocibula pushed a commit to dedocibula/beam that referenced this pull request Sep 15, 2022
)

* added a custom inference example

* added KeyedModelHandler

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* removed kernel spec

* added spacy load info

Co-authored-by: XQ Hu <xqhu@google.com>
Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>
kkdoon pushed a commit to twitter-forks/beam that referenced this pull request Sep 29, 2022
)

* added a custom inference example

* added KeyedModelHandler

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* removed kernel spec

* added spacy load info

Co-authored-by: XQ Hu <xqhu@google.com>
Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>
cushon pushed a commit to cushon/beam that referenced this pull request Oct 17, 2022
)

* added a custom inference example

* added KeyedModelHandler

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* Update examples/notebooks/beam-ml/run_custom_inference.ipynb

Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>

* removed kernel spec

* added spacy load info

Co-authored-by: XQ Hu <xqhu@google.com>
Co-authored-by: Anand Inguva <34158215+AnandInguva@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants