c369dea462f62b61a586c69953d99daea454a3e3,src/textacy/spacier/core.py,,_make_spacy_doc_from_doc,#Any#Any#,203
Before Change
elif callable(lang) is False:
// there"s nothing to be done with a callable lang, since we already have
// the doc, and checking the text lang is an unnecessary performance hit
raise TypeError(
"`lang` must be {}, not {}".format(
{str, spacy.language.Language, types.FunctionType}, type(lang),
)
)
return doc
After Change
elif callable(lang) is False:
// there"s nothing to be done with a callable lang, since we already have
// the doc, and checking the text lang is an unnecessary performance hit
raise TypeError(
errors.type_invalid_msg(
"lang", type(lang), Union[str, Callable[[str], str], Language]
)
)
return doc
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 17
Instances
Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/core.py
Class Name:
Method Name: _make_spacy_doc_from_doc
Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/core.py
Class Name:
Method Name: _make_spacy_doc_from_record
Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/core.py
Class Name:
Method Name: _make_spacy_doc_from_text
Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/core.py
Class Name:
Method Name: _make_spacy_doc_from_doc