It could be as simple as a keyword/phrase matching problem, but it could also be a nontrivial problem if compositions, hierarchies, and structures of texts are considered.
from the results, we observe that capsule networks can correctly recognize and cluster the important phrases with respect to the text categories.