()
| 18 | |
| 19 | |
| 20 | def test_get_params(): |
| 21 | model = BERTopic() |
| 22 | params = model.get_params() |
| 23 | assert not params["embedding_model"] |
| 24 | assert not params["low_memory"] |
| 25 | assert not params["nr_topics"] |
| 26 | assert params["n_gram_range"] == (1, 1) |
| 27 | assert params["min_topic_size"] == 10 |
| 28 | assert params["language"] == "english" |
| 29 | |
| 30 | |
| 31 | def test_no_plotly(): |
nothing calls this directly
no test coverage detected