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

HTML preview passage highlight on watson discovery v2 #318

Open
leaelhage opened this issue Mar 7, 2022 · 2 comments
Open

HTML preview passage highlight on watson discovery v2 #318

leaelhage opened this issue Mar 7, 2022 · 2 comments

Comments

@leaelhage
Copy link

No passage highlighted in html preview. Based on the code I should have either extracted_metadata.text_mappings or table.location but this is not case. Only information regarding the position is end_offset and start_offset.

@jhpedemonte
Copy link
Member

Need some more detailed information. Are you saying that you are getting a document JSON back from Discovery v2 and then trying to view that in HTML preview, but there is no passage highlighted? Any details you can provide would help, as well as a sample document JSON (even if reduced/scrubbed of sensitive data).

@leaelhage
Copy link
Author

Hi Javier, exactly we are receiving a json doc with all the information but looking at the htmlview code extracted_metadata.text_mapping or table.location is required to highlight the passage but this information is not in the json received. I am not able to upload the json file so I will send it via slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants