Automatic calls to VISL online parser
Project description
Python VISL Parser
Python module for automating calls to the morphosyntactic parser online for portuguese VISL.
Getting Started
The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- 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.
Usage
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'}
# ]
Now GO TO WORK!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vislparser-0.0.4.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for vislparser-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0810a089333d7f0885d023356bebee414900977a5bebe86dad081ddbf6b418 |
|
MD5 | b90b7f98a1020dfdc9fd9a2693bdfaab |
|
BLAKE2b-256 | 3ca599ef8101c01092e85afde8eddea20a32675d469197a14cd7558c89a82e44 |