CODAIT / text-extensions-for-pandas

Natural language processing support for Pandas dataframes.
Apache License 2.0
215 stars 34 forks source link

Added styling enchancements to SpanArray text highlighting and rendering #205

Closed PokkeFe closed 3 years ago

PokkeFe commented 3 years ago

Converted SpanArray HTML generator to load scripts and style sheets from a dedicated resource module. Integrates base JavaScript for future dynamic behavior. Added new styles for nested and compound highlight regions. Related to issue #201

frreiss commented 3 years ago

Thanks for the updates, @PokkeFe. I think this set of changes is in good enough state to merge into master.

One remaining issue that we should address ASAP in a follow-on PR: Cell 17 of our intro notebook throws an exception after these changes, because displaying multiple documents is not currently implemented. It would be better to generate an HTML error message (or generate an HTML warning followed by a display of the first document), so that this example notebook runs all the way to the end.