2c4a6e537126f4123de7c97f30587310d3712c06,tests/data/tokenizers/word_splitter_test.py,TestSimpleWordSplitter,test_tokenize_handles_special_cases,#TestSimpleWordSplitter#,39

Before Change


        sentence = "mr. and mrs. jones, etc., went to, e.g., the store"
        expected_tokens = ["mr.", "and", "mrs.", "jones", ",", "etc.", ",", "went", "to", ",",
                           "e.g.", ",", "the", "store"]
        tokens, _ = self.word_splitter.split_words(sentence)
        assert tokens == expected_tokens


class TestSpacyWordSplitter(AllenNlpTestCase):

After Change


        sentence = "mr. and mrs. jones, etc., went to, e.g., the store"
        expected_tokens = ["mr.", "and", "mrs.", "jones", ",", "etc.", ",", "went", "to", ",",
                           "e.g.", ",", "the", "store"]
        tokens = [t.text for t in self.word_splitter.split_words(sentence)]
        assert tokens == expected_tokens


class TestSpacyWordSplitter(AllenNlpTestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 10

Non-data size: 6

Instances


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSimpleWordSplitter
Method Name: test_tokenize_handles_special_cases


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSpacyWordSplitter
Method Name: test_tokenize_handles_final_apostrophe


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSpacyWordSplitter
Method Name: test_tokenize_handles_special_cases


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSimpleWordSplitter
Method Name: test_tokenize_handles_contraction


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSimpleWordSplitter
Method Name: test_tokenize_handles_complex_punctuation


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSimpleWordSplitter
Method Name: test_tokenize_handles_multiple_contraction


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSpacyWordSplitter
Method Name: test_tokenize_handles_multiple_contraction


Project Name: allenai/allennlp
Commit Name: dcd6487ea8612c56f44613fa6060f75eb20ab7d3
Time: 2018-02-28
Author: markn@allenai.org
File Name: allennlp/service/predictors/constituency_parser.py
Class Name: ConstituencyParserPredictor
Method Name: _json_to_instance


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSpacyWordSplitter
Method Name: test_tokenize_handles_contraction


Project Name: allenai/allennlp
Commit Name: 2c4a6e537126f4123de7c97f30587310d3712c06
Time: 2017-09-13
Author: mattg@allenai.org
File Name: tests/data/tokenizers/word_splitter_test.py
Class Name: TestSimpleWordSplitter
Method Name: test_tokenize_handles_final_apostrophe