--emb_msg_aggregation aggregation_method


Specify the aggregation function to apply over embedded messages to produce a single embedding of the group_id (-g).

Argument and Default Value

Default: mean.


Any method that can be called as np.method(bertMessageVectors, axis=0).

Other Switches

Required Switches:

Optional Switches:

Example Commands

Creates a BERT feature table with messages aggregated by selecting the median.

dlatkInterface.py -d dla_tutorial -t msgs -c user_id --add_emb_feat --emb_model bert-large-uncased --emb_msg_aggregation median