Download FreeLing User Manual
Transcript
Contents 1 FreeLing: Natural language 1.1 Supported Languages . . 1.2 Contributions . . . . . . . 1.3 Requirements . . . . . . . 1.4 Installation . . . . . . . . 1.5 Executing . . . . . . . . . 1.6 Porting to other platforms analysis libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 2 2 3 3 4 2 Using the sample main program to process corpora 2.1 Usage example . . . . . . . . . . . . . . . . . . . . . . 2.2 Configuration File and Command Line Options . . . . 2.3 Tokenizer rules file . . . . . . . . . . . . . . . . . . . . 2.4 Splitter options file . . . . . . . . . . . . . . . . . . . . 2.5 Multiword definition file . . . . . . . . . . . . . . . . . 2.6 Quantity recognition data file . . . . . . . . . . . . . . 2.7 Suffixation rules file . . . . . . . . . . . . . . . . . . . 2.8 Lexical Probabilities file . . . . . . . . . . . . . . . . . 2.9 Word form dictionary file . . . . . . . . . . . . . . . . 2.10 Named entity recognition data file . . . . . . . . . . . 2.11 Named entity classification data files . . . . . . . . . . 2.12 Sense dictionary file . . . . . . . . . . . . . . . . . . . 2.13 Punctuation symbol file . . . . . . . . . . . . . . . . . 2.14 HMM tagger parameter file . . . . . . . . . . . . . . . 2.15 Relaxation Labelling constraint grammar file . . . . . 2.16 Chart parser CFG file . . . . . . . . . . . . . . . . . . 2.17 Dependency parser heuristic rules file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 7 15 15 16 16 17 18 19 20 21 21 21 22 23 24 25 3 Using the library from your own application 3.1 Basic Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Sample program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 29 30 4 Extending the library with analizers for 4.1 Tokenizer . . . . . . . . . . . . . . . . . 4.2 Morphological analyzer . . . . . . . . . . 4.3 HMM PoS Tagger . . . . . . . . . . . . 4.4 Relaxation Labelling PoS Tagger . . . . 4.5 Chart Parser . . . . . . . . . . . . . . . 4.6 Dependency Parser . . . . . . . . . . . . 33 33 33 35 35 35 35 i new . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .