affect-kit
Turn timestamped affect annotations into a living emotional state — bands, momentum and residual warmth, not a single number.
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
7. 配置
DEFAULT_CONFIG 里每个数字都能调,最值得动的是三个:
import { DEFAULT_CONFIG } from "affect-kit";
const cfg = {
...DEFAULT_CONFIG,
halfLifeHours: 72, // 基线更稳
fade: { weight: 0.55, fast: 10, slow: 48 }, // 余温记得更久
hysteresisMinutes: 60, // 状态更粘
};
词汇校准表(比如把「沉」这个做事状态从 −0.6 折成 −0.15)不在库里——那是各人自己的词表:
compose(entries, now, cfg, { calibrate: { 沉: -0.15, 认真: 0.15 } });