Check whether zero-shot topic modeling is possible. * Embedding model is necessary to convert zero-shot topics to embeddings * Zero-shot topics should be defined
(self)
| 4066 | return documents, embeddings, assigned_documents, assigned_embeddings |
| 4067 | |
| 4068 | def _is_zeroshot(self): |
| 4069 | """Check whether zero-shot topic modeling is possible. |
| 4070 | |
| 4071 | * Embedding model is necessary to convert zero-shot topics to embeddings |
| 4072 | * Zero-shot topics should be defined |
| 4073 | """ |
| 4074 | if self.zeroshot_topic_list is not None and self.embedding_model is not None: |
| 4075 | return True |
| 4076 | return False |
| 4077 | |
| 4078 | def _combine_zeroshot_topics( |
| 4079 | self, |
no outgoing calls