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

Sparknlp 747 Date2Chunk and Chunk2Doc are not in the correct Python module #13609

Conversation

maziyarpanahi
Copy link
Member

When a pipeline is saved with either Date2Chunk or Chunk2Doc annotators, when it is being loaded in Python it cannot find these annotators. The pacakges were not sync between Python and Scala.

These two annotators are now under annotators package in Python and Scala

- They are in annotators on the Scala side
- They never worked if they are part of PipelineModel when they were being loaded
@maziyarpanahi maziyarpanahi added bug-fix DON'T MERGE Do not merge this PR labels Mar 5, 2023
@maziyarpanahi maziyarpanahi self-assigned this Mar 5, 2023
@maziyarpanahi maziyarpanahi changed the title Sparknlp 747 Date2Chunk and Chunk2Doc are not wrong module in Python Sparknlp 747 Date2Chunk and Chunk2Doc are not in the correct Python module Mar 14, 2023
@maziyarpanahi maziyarpanahi changed the base branch from master to release/432-release-candidate March 14, 2023 08:49
@maziyarpanahi maziyarpanahi merged commit eb92c16 into release/432-release-candidate Mar 14, 2023
maziyarpanahi added a commit that referenced this pull request May 10, 2023
…odule (#13609)

* Move Chunk2Doc and Date2Chunk from base to annotators

- They are in annotators on the Scala side
- They never worked if they are part of PipelineModel when they were being loaded

* Refactor Chunk2Doc from base to annotator

* Update unit tests

* Fix referencing wrong package in the unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix DON'T MERGE Do not merge this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant