--num_lda_threads

Switch

--num_lda_threads N

Description

Number of threads Mallet uses when estimating LDA topics.

Argument and Default Value

An integer. Default: 4.

Details

Verified end-to-end with real Mallet: passed straight through to LDAEstimator and on to Mallet's --num-threads option.

Other Switches

Required Switches:

Example Commands

Using the packaged dla_tutorial dataset (see DLATK LDA Interface):

dlatkInterface.py -d dla_tutorial -t msgs -c user_id -f 'feat$1gram$msgs$user_id' \
--estimate_lda_topics --num_topics 100 --no_lda_lexicon \
--mallet_path /opt/homebrew/bin/mallet --save_lda_files ./lda_out --num_lda_threads 4