Penelope v0.5.0 mix nlp.pos_tagger.train View Source

This task trains and optionally tests a part-of-speech tagger using files containing tokenized text and POS tags.

The trained model will be JSON-encoded and saved to the specified target file; it can be loaded by reading the target file, JSON decoding it, and feeding the result to POSTagger.compile/1.

If supplied, the test file must be formatted identically to the training file.

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.