|
base_model = 'beomi/KcELECTRA-base' |
|
|
|
entity_property_pair =['์ฃผ์ฐจ#์ผ๋ฐ', 'ํธ์์์ค#๋งํธ', 'ํธ์์์ค#์ผํ', 'ํ๊ตฐ#์ผ๋ฐ', 'ํ๊ตฐ#ํ๊ต ์ ๊ทผ์ฑ', 'ํ๊ตฐ#ํ์ ์ ๊ทผ์ฑ', |
|
'ํ๊ตฐ#์์ก ํ๊ฒฝ', '์ธํ๋ผ#์ผ๋ฐ', '์ธํ๋ผ#์๊ถ', '์ธํ๋ผ#๊ตํต', '์ธํ๋ผ#๋ณ์', '์ธํ๋ผ#๋์ค๊ตํต', 'ํ๊ฒฝ#์ผ๋ฐ', 'ํ๊ฒฝ#์์', 'ํธ์์์ค#์ผ๋ฐ', |
|
'ํ๊ฒฝ#๊ณต์', 'ํ๊ฒฝ#๋จ์ง ๊ด๋ฆฌ', 'ํ๊ฒฝ#๋ทฐ', 'ํ๊ฒฝ#์กฐ๊ฒฝ', 'ํ๊ฒฝ#๊ด๋ฆฌ๋น', '๊ตฌ์กฐ#์ง ๊ตฌ์กฐ', '๊ฐ๊ฒฉ#์์ธ', '์ ๋ง#์ผ๋ฐ', 'ํ๊ตฐ#์ ์น์'] |
|
|
|
entity2str = dict(zip(entity_property_pair, map(lambda x: x.replace("#", ", ").replace("/", ", "), entity_property_pair))) |
|
|
|
|
|
tf_id_to_name = ['True', 'False'] |
|
tf_name_to_id = {tf_id_to_name[i]: i for i in range(len(tf_id_to_name))} |
|
|
|
polarity_id_to_name = ['positive', 'negative'] |
|
polarity_name_to_id = {polarity_id_to_name[i]: i for i in range(len(polarity_id_to_name))} |