A part-of-speech vector encodes a word’s grammatical role as numerical coordinates. In a compact example, four one-hot coordinates represent ADV, ADJ, VERB, and NOUN, so each token becomes a small feature vector. section 7.2.6
The representation supports pattern detection by a one-dimensional convolution:
- Arrange POS categories as channels and words as sequence positions. section 7.2.6
Detecting a grammatical pattern
For the phrase “rightly timed pause,” the POS vectors mark “rightly” as ADV, “timed” as VERB, and “pause” as NOUN. A three-position Conv1d kernel produces a high response where that sequence occurs.
