def _check_stop_list(stop):
if stop == "<STR_LIT>":<EOL><INDENT>return THAI_STOP_WORDS<EOL><DEDENT>elif isinstance(stop, six.string_types):<EOL><INDENT>raise ValueError("<STR_LIT>" % stop)<EOL><DEDENT>elif stop is None:<EOL><INDENT>return None<EOL><DEDENT>return frozenset(stop)<EOL>
Check stop words list
ref: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/feature_extraction/text.py#L87-L95