情感分析
教程¶
在 Ludwig 的 Medium 出版物上,您可以找到一篇关于使用 Ludwig 进行情感分析的分为三部分的教程
评论 | 情感 |
---|---|
这部电影太棒了! | 正面 |
演技和摄影都很棒 | 正面 |
演技太糟糕了! | 负面 |
ludwig experiment \
--dataset sentiment.csv \
--config config.yaml
使用 config.yaml
input_features:
-
name: review
type: text
encoder:
type: parallel_cnn
output_features:
-
name: sentiment
type: category