edsnlp.viz.quick_examples
QuickExample
__call__
Displays the text and a table of entities
Parameters
PARAMETER | DESCRIPTION |
---|---|
as_dataframe | If true, returns the table as a DataFrame instead of displaying it, by default False TYPE: |
RETURNS | DESCRIPTION |
---|---|
Optional[DataFrame] | The DataFrame describing the document |
get_ents_interval
From the list of all entities, removes overlapping spans
is_ent
Check if the provided Token is part of an entity
Parameters
PARAMETER | DESCRIPTION |
---|---|
tok | A spaCy Token TYPE: |
RETURNS | DESCRIPTION |
---|---|
bool | True if |
get_text
Adds bold tags to self.text
display
Displays the text and a table of entities
Parameters
PARAMETER | DESCRIPTION |
---|---|
as_dataframe | If true, returns the table as a DataFrame instead of displaying it, by default False TYPE: |
RETURNS | DESCRIPTION |
---|---|
Optional[DataFrame] | The DataFrame describing the document |