CODAIT / text-extensions-for-pandas

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

Refactor other binary operations over span types to match __add__. #102

Open frreiss opened 4 years ago

frreiss commented 4 years ago

PR #98 refactored the binary add operation of all the span types (Span, TokenSpan, SpanArray, TokenSpanArray) into a single function add_spans() (located in text_extensions_for_pandas/array/span_util.py) that handles all combinations of the four types in either argument.

Other binary operations should be refactored into the same structure. Here's a list:

Note: The above list may not be complete. Please edit this description to add any missing ones.