For legacy reasons, the functions extract_dict() and extract_regex_tok() in spanner/extract.py return single-column DataFrames. These functions should return TokenSpanArray objects instead. Users who want a DataFrame can construct one on top of the returned array.
In addition to the testing code in test_extract.py, there is some downstream code in the notebooks that will need to be modified to deal with this API change.
For legacy reasons, the functions
extract_dict()andextract_regex_tok()inspanner/extract.pyreturn single-column DataFrames. These functions should returnTokenSpanArrayobjects instead. Users who want a DataFrame can construct one on top of the returned array.In addition to the testing code in
test_extract.py, there is some downstream code in the notebooks that will need to be modified to deal with this API change.