1b43ea3d9f7db02075536d9578891af06e324b9a,scattertext/WhitespaceNLP.py,,whitespace_nlp_with_sentences,#Any#Any#Any#,111

Before Change


			pos = "WORD"
			if tok.strip() == "":
				pos = "SPACE"
			elif re.match("^\W+$", tok):
				pos = "PUNCT"
			toks.append(Tok(pos,
			                tok[:2].lower(),

After Change


	pat = re.compile(r"([^\.!?]*?[\.!?$])", re.M)
	sents = []
	raw_sents = pat.findall(doc)
	if len(raw_sents) == 0:
		raw_sents = [doc]
	for sent in raw_sents:
		toks = []
		for tok in re.split(r"(\W)", sent):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: JasonKessler/scattertext
Commit Name: 1b43ea3d9f7db02075536d9578891af06e324b9a
Time: 2017-12-04
Author: jason.kessler@gmail.com
File Name: scattertext/WhitespaceNLP.py
Class Name:
Method Name: whitespace_nlp_with_sentences


Project Name: snipsco/snips-nlu
Commit Name: adfc6426e1e2ed40b6c7ad4bdecfffed5a45c9aa
Time: 2017-09-04
Author: clement.doumouro@snips.ai
File Name: snips_nlu/slot_filler/features_utils.py
Class Name:
Method Name: get_shape


Project Name: brian-team/brian2
Commit Name: 54c27a5b2b7c6155ff2e53bdf93b819d7365bbfb
Time: 2015-01-22
Author: marcel.stimberg@inserm.fr
File Name: brian2/stateupdaters/exponential_euler.py
Class Name:
Method Name: get_conditionally_linear_system


Project Name: JasonKessler/scattertext
Commit Name: 1b43ea3d9f7db02075536d9578891af06e324b9a
Time: 2017-12-04
Author: jason.kessler@gmail.com
File Name: scattertext/WhitespaceNLP.py
Class Name:
Method Name: _toks_from_sentence