Generalized Domain Adaptation for Sequence Labeling in Natural Language Processing