A small function to show how to use the stanford-pos-tagger in MATLAB.
It requires the following files:
english-left3words-distsim.taggerin the current path while running it. It can be found in
stanford-postagger.jarshould be added to the classpath. Matlab command to do it:
To run it simply drop it in the current working directory and run:
This is a very small sample sentence for test purpose - Chomsky.
[This/DT, is/VBZ, a/DT, very/RB, small/JJ, sample/NN, sentence/NN, for/IN, test/NN, purpose/NN, -/:, Chomsky/NNP, ./.]
The result is an
Note on performance:: See discussion on this issue.
File path for
english-left3words-distsim.tagger in Windows:: See discussion on and resolution of this issue.
Verified to work on:
3.4.1of the tagger
- Matlab version
- JRE version:
1.7(JRE 7) and
Also, see this issue for more details.
@Sardar-Usama did a detailed analysis of compatibility.