-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CommunityLM Example: Initial Jupyter Notebook (#15)
* Added abstract functions for LM and distmod * Resolved type-checking error * Resolved type-checking error * Resolved type-checking error * Changed distmod structure * Everything is LM commit * Add initial community lm example * Remove shell check * Fix name error --------- Co-authored-by: Rohan Modi <rohan.modi.1028@gmail.com>
- Loading branch information
1 parent
e1f3a64
commit 873c60e
Showing
19 changed files
with
711 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data/ | ||
output/ | ||
rankings/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# CommunityLM | ||
|
||
This is a replication of the experiments from | ||
[CommunityLM](https://arxiv.org/abs/2209.07065) (Jiang et al. 2022), which | ||
probes partisan worldviews from language models. | ||
|
||
## Reference | ||
|
||
Some of this code and data was derived from the | ||
[CommunityLM repo](https://github.com/hjian42/communitylm). | ||
|
||
If you use this example, we would appreciate if you acknowledge | ||
[LLMents](https://github.com/neulab/llments) and the original paper. | ||
|
||
```bibtex | ||
@misc{ | ||
title = "{LLMents}: A Toolkit for Language Model Experiments", | ||
author = " | ||
Graham Neubig and | ||
Aakriti Kinra and | ||
Mihir Bansal and | ||
Qingyang Liu and | ||
Rohan Modi and | ||
Xinran Wan | ||
", | ||
year = "2024", | ||
howpublished = "https://github.com/neulab/llments", | ||
} | ||
``` | ||
|
||
```bibtex | ||
@inproceedings{jiang-etal-2022-communitylm, | ||
title = "{C}ommunity{LM}: Probing Partisan Worldviews from Language Models", | ||
author = "Jiang, Hang and | ||
Beeferman, Doug and | ||
Roy, Brandon and | ||
Roy, Deb", | ||
booktitle = " | ||
Proceedings of the 29th International Conference on Computational Linguistics | ||
", | ||
month = oct, | ||
year = "2022", | ||
address = "Gyeongju, Republic of Korea", | ||
publisher = "International Committee on Computational Linguistics", | ||
url = "https://aclanthology.org/2022.coling-1.593", | ||
pages = "6818--6826", | ||
} | ||
``` |
Oops, something went wrong.