-
Notifications
You must be signed in to change notification settings - Fork 113
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
Extracting entities inside an entity #32
Comments
All you have to do is tweak the xpath you use to access the result from the So you would write |
I tried that, but I am still getting the same output as before. |
might be the |
Thanks for the suggestion! I haven't worked with |
Does anyone knows how to write a custom parser to extract a named entity inside an entity.
For example from the following sentence I want to extract 'boiling' which will be inside the prefix entity.
d = Sentence('Synthesis of 2,4,6-trinitrotoluene (3a).The procedure was followed to yield a pale yellow solid (boiling point 240 °C)')
This is my attempt to write the parser:
However what d.records.serialize() produces is,
[{'boiling_points': [{'value': '240',
'units': '°C',
'prefix': 'boiling point'}]}]
The text was updated successfully, but these errors were encountered: