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

Record non-default config in expected_types_and_attributes #57

Open
jzpang opened this issue Jun 24, 2021 · 0 comments
Open

Record non-default config in expected_types_and_attributes #57

jzpang opened this issue Jun 24, 2021 · 0 comments

Comments

@jzpang
Copy link
Collaborator

jzpang commented Jun 24, 2021

Describe the bug
When user pass non-default config in processor, and the non-default config is in expected_types_and_attributes check, and set enforce_consistency=True, the pipeline will fail.

To Reproduce
Steps to reproduce the behavior:
Use QuestionAnsweringSingle Processor as an example. https://github.com/asyml/forte-wrappers/blob/main/src/huggingface/forte/huggingface/question_and_answering_single.py

If we create a Pipeline, with config = {"entry_type": "ft.onto.base_ontology.Sentence"} but not default Document, the pipeline will fail with
forte.common.exception.ExpectedRecordNotFound: The record type ft.onto.base_ontology.Document is not found in meta of the prediction datapack.

Expected behavior
It should record the config with no error.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Python and Package verions: [e.g. Python version, Pytorch version]

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant