ce8df6284dfc00952bc43dfb606a858dbc2639a9,pytext/data/test/query_document_pairwise_ranking_data_handler_test.py,QueryDocumentPairwiseRankingDataHandlerTest,test_tokenization,#QueryDocumentPairwiseRankingDataHandlerTest#,53
Before Change
def test_tokenization(self):
file_name = tests_module.test_file("query_document_pairwise_ranking_tiny.tsv")
data = self.data_handler.read_from_file(
file_name, self.data_handler.raw_columns
)
data = list(self.data_handler.preprocess(data))
print(data[0][ModelInput.QUERY])
// test tokenization: must split into chars (ascii string input)
self.assertEqual(data[0][ModelInput.QUERY], ["q", "u", "e", "r", "y"])
After Change
def test_tokenization(self):
file_name = tests_module.test_file("query_document_pairwise_ranking_tiny.tsv")
data = list(
self.data_handler.read_from_file(file_name, self.data_handler.raw_columns)
)
data = list(self.data_handler.preprocess(data))
print(data[0][ModelInput.QUERY])
// test tokenization: must split into chars (ascii string input)
self.assertEqual(data[0][ModelInput.QUERY], ["q", "u", "e", "r", "y"])
In pattern: SUPERPATTERN
Frequency: 10
Non-data size: 3
Instances
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/query_document_pairwise_ranking_data_handler_test.py
Class Name: QueryDocumentPairwiseRankingDataHandlerTest
Method Name: test_tokenization
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/contextual_intent_slot_data_handler_test.py
Class Name: ContextualIntentSlotModelDataHandlerTest
Method Name: setUp
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/joint_data_handler_test.py
Class Name: JointDataHandlerTest
Method Name: test_read_from_file
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/datahandler_test.py
Class Name: DataHandlerTest
Method Name: test_read_partially_from_csv
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/joint_data_handler_test.py
Class Name: JointDataHandlerTest
Method Name: test_tokenization
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/datahandler_test.py
Class Name: DataHandlerTest
Method Name: test_read_from_csv
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/doc_classification_data_handler_test.py
Class Name: DocClassificationDataHandlerTest
Method Name: test_read_from_file
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/doc_classification_data_handler_test.py
Class Name: DocClassificationDataHandlerTest
Method Name: test_tokenization
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/query_document_pairwise_ranking_data_handler_test.py
Class Name: QueryDocumentPairwiseRankingDataHandlerTest
Method Name: test_read_from_file
Project Name: facebookresearch/pytext
Commit Name: ce8df6284dfc00952bc43dfb606a858dbc2639a9
Time: 2019-02-19
Author: chenyangyu@instagram.com
File Name: pytext/data/test/kd_doc_classification_data_handler_test.py
Class Name: KDDocClassificationDataHandlerTest
Method Name: setUp