def test_question_type(): for test in test_cases: sent, tokens, exp_features = test processed = StandardNLP.process(sent) features = FeatureExtractor.extract_features(processed) assert features['questionType'] == exp_features['questionType']
def test_nouns(): for test in test_cases: sent, tokens, exp_features = test processed = StandardNLP.process(sent) features = FeatureExtractor.extract_features(processed) assert features['nouns'] == exp_features['nouns']