Sum-Product Networks for Sequence Labeling