()
| 36 | , corpus=data)[0], np.ndarray) |
| 37 | |
| 38 | def test_vectorizer_params(): |
| 39 | assert text2mat(data, vectorizer={ |
| 40 | 'model' : 'CountVectorizer', |
| 41 | 'params': { |
| 42 | 'max_features' : 2 |
| 43 | }}, corpus=data)[0].shape[1]==20 |
| 44 | |
| 45 | def test_LDA_class(): |
| 46 | assert text2mat(data, semantic=LatentDirichletAllocation, corpus=data)[0].shape[1]==10 |
nothing calls this directly
no test coverage detected