Python module for automating calls to the morphosyntactic parser online for portuguese VISL.
The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone this repo
- Install
virtualenvwrapper
following the steps listed here - Create your venv using the command:
mkvirtualenv --python=<your_python3.6_installation_dir> <your_env_name>
- Install the needed modules using the command:
pip install -r requirements.pip
After that you shold be able to work just fine.
To use the module you have just to import and call the parse
method.
Example:
import vislparser
vislparser.parse('Bom dia')
# [
# {'word': 'bom', 'stem': 'bom', 'semantic_tags': [], 'word_class_tag': 'ADJ', 'other_tags': 'M S', 'syntatic_tag': '@>N'},
# {'word': 'dia', 'stem': 'dia', 'semantic_tags': ['temp', 'dur', 'per', 'unit'], 'word_class_tag': 'N', 'other_tags': 'M S', 'syntatic_tag': '@NPHR'}
# ]
You can easily install Python VISL Parser via pip, with the command:
pip install vislparser