Skip to main content

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.5.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

vislparser-0.0.5-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page