-
Notifications
You must be signed in to change notification settings - Fork 191
Can Predict retrieve additional tuples? #323
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
Comments
Hi @simontav In this PR #332 there is a very very first attempt to retrieve extra columns from CSV. You can test it in this way:
Remember, this is not compatible with the stable version due to the output is not a tuple. |
Thanks @rogelio-meza-t for your response.I tried to follow all of the changes that was suggested however, I am getting the below error. Thank you so much, |
As a temporary solution, I advise you to replace the titles in the dataframe by some sort of index, and to store another table in parallel where for each index you have the metadata you need. When you run |
thanks @andrelmfarias . |
Hi @simontav I'll check what is happening because I don't know exactly where is the bug. |
As far as I can see, the result from the predict (See the below example) returns a list of 4 tuples of (answer, title, paragraph, score/logit). Now I was wondering whether it would be possible to have additional paragraph attributes in the output? (For example, paragraph ID). If Yes, can you please provide information on how to get that?
Thanks
cdqa_pipeline.predict(query='question')
The text was updated successfully, but these errors were encountered: