# Using the sample main program to process corpora

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.

Subsections

- Usage example
- Configuration File and Command Line Options
  - Valid options
  - Sample Configuration File
- Tokenizer rules file
- Splitter options file
- Multiword definition file
- Quantity recognition data file
- Suffixation rules file
- Lexical Probabilities file
- Word form dictionary file
- Named entity recognition data file
- Named entity classification data files
- Sense dictionary file
- Punctuation symbol file
- HMM tagger parameter file
- Relaxation Labelling constraint grammar file
- Chart parser CFG file
- Dependency parser heuristic rules file