Skip to content

Inference on sub-topics #110

@DobromirM

Description

@DobromirM

After creating a hierarchical model by subdividing the top groups into sub-groups, how can we infer topical content for new documents with the fitted model?

The example shown in the documentation returns only the inference for the top-level categories.

document_topic_matrix = model.transform(new_documents, embeddings=None)

I.e. if we start with a model with 5 categories and then sub-divide each category into 3 sub-categories, the transform() method returns the scores only for the top 5 categories instead of the scores for all 5 top categories + 15 sub-categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions