A text classification task has only one final output, while a sequence labeling task has an output in each input position.
The basic operations of morphological processing include dilation and erosion. These operations can be combined to achieve practical algorithms such as opening and closing operations.