Softmax forever, or why I like softmax

[UPDATE: Feb 8 2025] my amazing colleague Max Shen noticed a sign mistake in my derivation of the partial derivative of the log-harmonic function below. i taught my first full-semester course on Natural Language Processing with Distributed Representation in fall 2015 (whoa, a decade ago!) you can find the lecture