()
| 46 | assert text2mat(data, semantic=LatentDirichletAllocation, corpus=data)[0].shape[1]==10 |
| 47 | |
| 48 | def test_LDA_class_instance(): |
| 49 | user_model = LatentDirichletAllocation(n_components=15) |
| 50 | assert text2mat(data, semantic=user_model, corpus=data)[0].shape[1]==15 |
| 51 | |
| 52 | def test_corpus(): |
| 53 | assert text2mat(data, corpus=data)[0].shape[1]==20 |
nothing calls this directly
no test coverage detected