ABSA_APT / config.py
mjlee
0708
0cd2c97
raw
history blame contribute delete
920 Bytes
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))}