Seegee:
The Ichabod in the TV show is about as far as one can get from the one in the original story. I think back in those days school masters were expected to be strict and not spare the rod.
AFAIK Ichabod Crane's pupils were all boys, and its stated that he dished out extra discipline (on the day in which the Washington Irving story takes place) because he was anticipating a romantic liaison with Katrina van Tassel at a party that evening. (I'm not aware that she was ever a student of his, but I haven't read the story for several decades.)
However, my impression was that the guy had merely been expending his excess energy via switching those pupils more than usual, not that he received any sexual gratification from doing so.
In the written account, Crane was a shallow, egotistical, unattractive person whom Katrina used in attempting to make her boyfriend (Brom Bones) jealous, and therefore more attentive to her in the future; he was also apparently superstitious and cowardly.
I've never considered the character to have had spankophile tendencies--administering corporal punishment was simply an expected part of his position as schoolmaster...
--C.K.