Make soft_max and word_margin constants, since no caller passes them.