예제 #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']