Add gradient clipping, multiple training strategies, and a gradient test
for PartOfSpeechWordLayer.