Spaces:
Sleeping
Sleeping
# portfolio/npc_social_network/npc/emotion_config.py | |
# ๊ฐ์ ์ด๊ธฐ ์ํ ๋ฐ decay ์ค์ | |
# ๊ณ ์ฐจ์ ๊ฐ์ ์ํ ์ ์ | |
# ๊ท ํ ์กํ ๋ณตํฉ ๊ฐ์ ๋ชจ๋ธ ์ ์๋ฅผ ์ํด GoEmotions ๋ฐํ์ผ๋ก ์ค๊ณ (ComplexEmotions์ด๋ผ ๋ช ๋ช ) | |
EMOTION_LIST = [ | |
# Core Emotions (๊ธฐ๋ณธ ๊ฐ์ ) | |
# ๊ธฐ์จ, ์ฌํ, ๋ถ๋ ธ, ๊ณตํฌ, ํ์ค, | |
# ๋๋, ์ค๋ฆฝ | |
"joy", "sadness", "anger", "fear", "disgust", | |
"surprise", "neutral", | |
# Social Emotions (์ฌํ์ ๊ฐ์ ) | |
# ๊ฐ์ฌ, ์์น์ฌ, ์ฃ์ฑ ๊ฐ, ์๋ถ์ฌ, ์งํฌ, ์ฐ๋ฏผ/๋์ , | |
# ์ฌ๋/์ ์ , ์กด๊ฒฝ/๊ฐํ, ๊ณต๊ฐ, ๊ฒฝ์ธ์ฌ, ์ ์ฐฉ, ์๋ก ์ถ๊ตฌ | |
"gratitude", "shame", "guilt", "pride", "jealousy", "compassion", | |
"love", "admiration", "empathy", "awe", "attachment", "comfort", | |
# Cognitive States (์ธ์ง์ ์ํ) | |
# ๊ธฐ๋, ํธ๊ธฐ์ฌ, ํผ๋, ํฅ๋ฏธ, ๋ชฐ์ | |
# ์ง๋ฃจํจ, ์๋, ๋ถ์/๊ธด์ฅ, ํ์จ, ํ์ | |
"anticipation", "curiosity", "confusion", "interest", "engagement", | |
"boredom", "relief", "anxiety", "calm", "skepticism", | |
# Complex Emotions (๋ณตํฉ ๊ฐ์ ) | |
# ํฅ์, ๋ฌ์ฝค์์ธ๋ฆํจ, ๋จ์ ๋ถํ์์ ๋๋ผ๋ ํ๋ณต, ํฌ๋ง, ๋ถ๊ฐ | |
# ๊ธฐ๋ ์์ ๊ธฐ์จ, ํํ, ๋ฐ์ถ, ์์ ๊ฐ | |
"nostalgia", "bittersweet", "schadenfreude", "hope", "resentment", | |
"anticipatory_joy", "regret", "rumination", "groundedness", | |
] | |
# ๊ฐ์ : ์นดํ ๊ณ ๋ฆฌ ๋งต | |
EMOTION_CATEGORY_MAP = { | |
# Core | |
"joy": "core", | |
"sadness": "core", | |
"anger": "core", | |
"fear": "core", | |
"disgust": "core", | |
"surprise": "core", | |
"neutral": "core", | |
# Social | |
"gratitude": "social", | |
"shame": "social", | |
"guilt": "social", | |
"pride": "social", | |
"jealousy": "social", | |
"compassion": "social", | |
"love": "social", | |
"admiration": "social", | |
"empathy": "social", | |
"awe": "social", | |
"attachment": "social", | |
"comfort": "social", | |
# Cognitive | |
"anticipation": "cognitive", | |
"curiosity": "cognitive", | |
"confusion": "cognitive", | |
"interest": "cognitive", | |
"engagement": "cognitive", | |
"boredom": "cognitive", | |
"relief": "cognitive", | |
"anxiety": "cognitive", | |
"calm": "cognitive", | |
"skepticism": "cognitive", | |
# Complex | |
"nostalgia": "complex", | |
"bittersweet": "complex", | |
"schadenfreude": "complex", | |
"hope": "complex", | |
"resentment": "complex", | |
"anticipatory_joy": "complex", | |
"regret": "complex", | |
"rumination": "complex", | |
"groundedness": "complex", | |
} | |
# ๊ฐ์ ๋ณ ํ๋ณต ์๋ (ms ๋จ์๊ฐ ์๋ ๋จ์๋น ๊ฐ์ ์๋) | |
EMOTION_DECAY_RATE = { | |
# Core (๊ธฐ๋ณธ ๊ฐ์ ) | |
"joy": 0.6, # ๊ธฐ์จ | |
"sadness": 0.3, # ์ฌํ | |
"anger": 0.4, # ๋ถ๋ ธ | |
"fear": 0.4, # ๊ณตํฌ | |
"disgust": 0.5, # ํ์ค | |
"surprise": 0.8, # ๋๋ | |
"neutral": 1.2, # ์ค๋ฆฝ | |
# Social (์ฌํ์ ๊ฐ์ ) | |
"gratitude": 0.6, # ๊ฐ์ฌ | |
"shame": 0.3, # ์์น์ฌ | |
"guilt": 0.3, # ์ฃ์ฑ ๊ฐ | |
"pride": 0.6, # ์๋ถ์ฌ | |
"jealousy": 0.4, # ์งํฌ | |
"compassion": 0.7, # ์ฐ๋ฏผ/๋์ | |
"love": 0.2, # ์ฌ๋/์ ์ | |
"admiration": 0.7, # ์กด๊ฒฝ/๊ฐํ | |
"empathy": 0.7, # ๊ณต๊ฐ | |
"awe": 0.8, # ๊ฒฝ์ธ์ฌ | |
"attachment": 0.2, # ์ ์ฐฉ | |
"comfort": 0.6, # ์๋ก ์ถ๊ตฌ | |
# Cognitive (์ธ์ง์ ์ํ) | |
"anticipation": 0.6, # ๊ธฐ๋ | |
"curiosity": 0.8, # ํธ๊ธฐ์ฌ | |
"confusion": 0.5, # ํผ๋ | |
"interest": 0.8, # ํฅ๋ฏธ | |
"engagement": 0.7, # ๋ชฐ์ | |
"boredom": 0.4, # ์ง๋ฃจํจ | |
"relief": 0.8, # ์๋ | |
"anxiety": 0.5, # ๋ถ์/๊ธด์ฅ | |
"calm": 0.7, # ํ์จ | |
"skepticism": 0.5, # ํ์ | |
# Complex (๋ณตํฉ ๊ฐ์ ) | |
"nostalgia": 0.2, # ํฅ์ | |
"bittersweet": 0.3, # ๋ฌ์ฝค์์ธ๋ฆํจ | |
"schadenfreude": 0.5, # ๋จ์ ๋ถํ์์ ๋๋ผ๋ ๊ธฐ์จ | |
"hope": 0.6, # ํฌ๋ง | |
"resentment": 0.4, # ๋ถ๊ฐ | |
"anticipatory_joy": 0.6, # ๊ธฐ๋ ์์ ๊ธฐ์จ | |
"regret": 0.3, # ํํ | |
"rumination": 0.3, # ๋ฐ์ถ | |
"groundedness": 0.8 # ์์ ๊ฐ | |
} | |
# ๊ฐ์ฑ ํ ํ๋ฆฟ(0~1 ๋ฒ์) | |
PERSONALITY_TEMPLATE = { | |
"affect_bias": 1.0, # Core emotion ์ํฅ | |
"social_bias": 1.0, # Social emotion ์ํฅ | |
"cognitive_bias": 1.0, # Cognitive state ์ํฅ | |
"complex_bias": 1.0, # Complex emotion ์ํฅ | |
"sensitive": 1.0, # ์ ์ฒด ๊ฐ์ ๋ฐ์ ๊ฐ๋ | |
"stoic": 0.0 # ์ ์ฒด ๊ฐ์ ๋ํ ์ ๋ (๊ฐ์ ๊ฐ์๋์ ์ํฅ) | |
} | |
# ๊ด๊ณ์ ๊ธ/๋ถ์ ์ํฅ์ผ๋ก ํด์ํ ๊ฐ์ ๋งคํ ์ ์ (๋ ผ๋ฌธ ์ค๊ณ ๊ธฐ๋ฐ ์ ์ฉ) | |
POSITIVE_RELATION_EMOTIONS = [ | |
"joy", "surprise", "gratitude", "pride", "love", | |
"admiration", "empathy", "hope", "anticipatory_joy", "calm", | |
"engagement", "relief", "interest", | |
] | |
NEGATIVE_RELATION_EMOTIONS = [ | |
"sadness", "anger", "fear", "disgust", "shame", | |
"guilt", "jealousy", "resentment", "regret", "schadenfreude", | |
"anxiety", "confusion", "skepticism", "boredom", | |
] | |
COGNITIVE_RELATION_EMOTIONS = [ | |
"compassion", "awe", "attachment", "anticipation", "curiosity", | |
"nostalgia", "bittersweet", "rumination", "groundedness", "comfort", | |
] | |
# ๊ฐ์ ๋ณ ๊ด๊ณ ์ํฅ๋ ์ ์ (๊ด๊ณ์ ์ํฅ ์ฃผ๋ ๊ฐ์ ๋ง ๋ฑ๋ก, ์ ๊ทํ๋ [-2.0 ~ +2.0] ๋ฒ์ ์์์ ์ ์) | |
EMOTION_RELATION_IMPACT = { | |
"joy": 1.0, | |
"surprise": 0.2, | |
"gratitude": 1.2, | |
"pride": 0.5, | |
"love": 2.0, | |
"admiration": 0.8, | |
"empathy": 1.0, | |
"hope": 0.9, | |
"anticipatory_joy": 1.2, | |
"calm": 0.7, | |
"engagement": 0.3, | |
"relief": 0.6, | |
"interest": 0.6, | |
"sadness": -1.0, | |
"anger": -1.8, | |
"disgust": -2.0, | |
"fear": -1.2, | |
"shame": -1.2, | |
"guilt": 0.3, | |
"jealousy": -1.2, | |
"resentment": -1.8, | |
"regret": -0.9, | |
"schadenfreude": -1.5, | |
"anxiety": -0.5, | |
"confusion": -0.2, | |
"skepticism": -0.2, | |
"boredom": -0.2, | |
"compassion": 0.3, | |
"awe": 0.6, | |
"attachment": 1.7, | |
"anticipation": 0.7, | |
"curiosity": 0.6, | |
"nostalgia": 0.4, | |
"bittersweet": 0.4, | |
"rumination": 0.4, | |
"groundedness": 0.5, | |
"comfort": 0.6, | |
} |