Text from the document is not extracted when a super note-tag is present in the document. #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current Issue with the package:
The package extracts the text and its references; however, when a super note-tag is present, the complete text is omitted, and only the respective note-tag text is extracted as an output.
For example: Below is the text present exactly below the title of the document in test document
32019R0947
:The expected output is:
Current Output is:
Changes made in the script:
The issue is present for the statements when there is a
super note-tag
present. Thus a regular expression is added to modify the html tag before being passed to the ETree for information extraction.After the code changes, for the text below:
The output is as follows: