MCPcopy Create free account
hub / github.com/MachineLP/TextMatch / test_q_match

Function test_q_match

tests/core_test/qa_match_test.py:23–28  ·  view source on GitHub ↗
(testword)

Source from the content-addressed store, hash-verified

21
22
23def 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
30def test_a_match(testword):
31 # AMatch

Callers 1

qa_match_test.pyFile · 0.85

Calls 2

predictMethod · 0.95
QMatchClass · 0.90

Tested by

no test coverage detected