Child pages
  • Creating a POSDictionary using the API
Skip to end of metadata
Go to start of metadata

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.


  1. The addTags method is package-private. You will need to use it from a class which declares the same package.
  2. Close the OutputStream after using the serialize method.

Code example:
  • No labels