示例#1
0
文件: test_nlp.py 项目: Machyne/pal
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']
示例#2
0
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']
示例#3
0
文件: test_nlp.py 项目: Machyne/pal
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']
示例#4
0
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']