Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 676 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 676 Bytes

PyFreeling

Freeling wrapper. Works around the analize command line tool. It will return a lxml object.

Installation

pip install pyfreeling

or

conda install pyfreeling -c malev

Usage

from pyfreeling import Analyzer

analyzer = Analyzer(config='config.cfg')
xml = analyzer.run('Hello World')

analyzer = Analyzer(config='config.cfg', lang='es')

analyzer.run('Hola mundo', 'noflush')

All the options here are available as optional arguments for the run method. There are more examples here.