You can use the API to create a POSDictionary that can be used with POSTagger tool.
- Create an POSDictionary object, optionally set the case sensitivity flag, which is true by default;
- Populate the POSDictionary object using the addTags(String word, String... tags) method;
- Serialize the dictionary using the serialize(OutputStream out) method.
- The addTags method is package-private. You will need to use it from a class which declares the same package.
- Close the OutputStream after using the serialize method.