(testword)
| 21 | |
| 22 | |
| 23 | def test_q_match(testword): |
| 24 | # QMatch |
| 25 | q_match = QMatch( q_dict=test_dict, match_models=['bow', 'tfidf', 'ngram_tfidf']) |
| 26 | q_match_pre = q_match.predict(testword, match_strategy='score', vote_threshold=0.5, key_weight = {'bow': 1, 'tfidf': 1, 'ngram_tfidf': 1}) |
| 27 | print ('q_match_pre>>>>>', q_match_pre ) |
| 28 | return q_match_pre |
| 29 | |
| 30 | def test_a_match(testword): |
| 31 | # AMatch |
no test coverage detected