Open monk1337 opened 1 year ago
We already have the NER template https://github.com/promptslab/PromptifyJs/blob/main/examples/nerExample.js
But that is not returning the position of the entity in the raw test. We need to modify the template to add one more parameter called position: bool if true, return the format like below.
position: bool
[{'E': '93-year-old', 'T': 'Age', 'start':29, 'end': 47}]
The 'start':29, 'end': 47 would be useful for the UI part.
We already have the NER template https://github.com/promptslab/PromptifyJs/blob/main/examples/nerExample.js
But that is not returning the position of the entity in the raw test. We need to modify the template to add one more parameter called
position: bool
if true, return the format like below.[{'E': '93-year-old', 'T': 'Age', 'start':29, 'end': 47}]
The 'start':29, 'end': 47 would be useful for the UI part.