You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend the widget to also display entire DataFrames with one or more columns of span data, similar to how display.render() displays spans of multiple types at the same time.
The type/tag associated with the spans should be configurable, and should be drawn either from the names of columns in the DataFrame (for example, if there are columns "arg1" and "arg2"), or from data from the same row in a separate column (for example, "entity_type" with values like "Person", "Org", etc.).
Since Pandas DataFrames already have a _repr_html_ method, the API for this new viz should be a function that you pass a DataFrame through, similar to how displacy.render() takes a SpaCy Doc object as input and returns a new object with IPython display hooks.
The text was updated successfully, but these errors were encountered:
Extend the widget to also display entire DataFrames with one or more columns of span data, similar to how
display.render()
displays spans of multiple types at the same time.The type/tag associated with the spans should be configurable, and should be drawn either from the names of columns in the DataFrame (for example, if there are columns "arg1" and "arg2"), or from data from the same row in a separate column (for example, "entity_type" with values like "Person", "Org", etc.).
Since Pandas DataFrames already have a
_repr_html_
method, the API for this new viz should be a function that you pass a DataFrame through, similar to howdisplacy.render()
takes a SpaCyDoc
object as input and returns a new object with IPython display hooks.The text was updated successfully, but these errors were encountered: