The simplest way to use the FreeLing libraries is via the provided sample main program, which allows the user to process an input text to obtain several linguistic processings.
The sample main program is called with the command:
analyzer [-f <config-file>] [options]
If <config-file>
is not specified, a file named
analyzer.cfg is searched in the current working
directory. Extra options may be specified in the command
line to override any config-file contents.
The FreeLing package includes default configuration files for Spanish, Catalan and English. They may be found at share/FreeLing/config directory under the FreeLing installation directory (by default, /usr/local).
The analyzer program reads from standard input and prints results to standard output, with a plain formats. You may adapt the print formats of this program to suit your needs.