Hello,
I want to ask about the difference between BAG_OF_WORDS_ARCHIVE_MAP in this repository and HuggingFace Transformers examples/research-projects/pplm.
In run_pplm.py in this repository,
|
BAG_OF_WORDS_ARCHIVE_MAP = { |
|
'legal': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/legal.txt", |
|
'military': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/military.txt", |
|
'monsters': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/monsters.txt", |
|
'politics': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/politics.txt", |
|
'positive_words': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/positive_words.txt", |
|
'religion': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/religion.txt", |
|
'science': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/science.txt", |
|
'space': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/space.txt", |
|
'technology': "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/technology.txt", |
|
} |
On the contrary, in run_pplm.py in the examples/research_projects/pplm of HuggingFace transformers,
https://github.com/huggingface/transformers/blob/bfa4ccf77d65d8899b01417bd9845b2e78bc0ec5/examples/research_projects/pplm/run_pplm.py#L47-L55
BAG_OF_WORDS_ARCHIVE_MAP = {
"legal": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/legal.txt",
"military": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/military.txt",
"politics": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/politics.txt",
"religion": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/religion.txt",
"science": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/science.txt",
"space": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/space.txt",
"technology": "https://s3.amazonaws.com/models.huggingface.co/bert/pplm/bow/technology.txt",
}
It seems some of the word lists are removed in the examples/research_projects version.
Are there any rights issues involved in using the lists?
I'm sorry if this is an impolite question.
I really appreciate any help you can provide.
Hello,
I want to ask about the difference between
BAG_OF_WORDS_ARCHIVE_MAPin this repository and HuggingFace Transformers examples/research-projects/pplm.In run_pplm.py in this repository,
PPLM/run_pplm.py
Lines 58 to 68 in 5b262d6
On the contrary, in run_pplm.py in the examples/research_projects/pplm of HuggingFace transformers,
https://github.com/huggingface/transformers/blob/bfa4ccf77d65d8899b01417bd9845b2e78bc0ec5/examples/research_projects/pplm/run_pplm.py#L47-L55
It seems some of the word lists are removed in the examples/research_projects version.
Are there any rights issues involved in using the lists?
I'm sorry if this is an impolite question.
I really appreciate any help you can provide.