Created
August 10, 2022 04:03
-
-
Save ecdedios/8e04644657f2a4fc61f6d400ec6a9881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initialize the setup | |
nlp = setup(data = df, target = 'tweet', session_id = 493, custom_stopwords = [ 'rt', 'https', 'http', 'co', 'amp']) | |
# create the model | |
lda = create_model('lda', num_topics = 6, multi_core = True) | |
# label the data using trained model | |
df_lda = assign_model(lda) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment