Skip to content

seed_phrase is ignored #81

Description

@awlassche

I tried out using seeded topic modelling, using pre-embedded documents:

model = KeyNMF(10, top_n=15, encoder=trf, vectorizer=CountVectorizer(stop_words=stop_words, min_df=50, max_df=0.85), seed_phrase='bog teater literatur')
model.fit(cleaned_corpus, embeddings=embeddings_matrix)

However, this gave me the same results as when I left out the seed_phrase:

model = KeyNMF(10, top_n=15, encoder=trf, vectorizer=CountVectorizer(stop_words=stop_words, min_df=50, max_df=0.85))
model.fit(cleaned_corpus, embeddings=embeddings_matrix)

Is it possible that the seed_phrase gets overwritten as soon as embeddings is defined?

EDIT: when I leave out embeddings=embeddings_matrix, I do get a different result. (But I want to load my pre-embedded documents.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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