python_vncorenlp
Project description
python-vncorenlp
A Python wrapper for VnCoreNLP using Pyjnius
Table Of Contents
Prerequisites
Installation
You can install this package from PyPI using pip:
$ pip install python-vncorenlp
Example
#!/usr/bin/python
# -*- coding: utf-8 -*-
from python_vncorenlp import install, Pipeline
install('-Xmx2g')
def main():
pipeline = Pipeline()
pipeline.load_model()
print(pipeline.annotate_doc('Tôi là chàng sinh viên Bách Khoa'))
print(pipeline.annotate_docs([
'Tôi là chàng sinh viên Bách Khoa',
'Tôi học Toán tin ứng dụng'
]))
if __name__ == '__main__':
main()
The parameter -Xmx2g
means that the VM can allocate a maximum of 2 GB for the Heap Space. If you want to use all module, set heap space to -Xmx4g
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_vncorenlp-0.1.8.tar.gz
(45.9 MB
view details)
Built Distribution
File details
Details for the file python_vncorenlp-0.1.8.tar.gz
.
File metadata
- Download URL: python_vncorenlp-0.1.8.tar.gz
- Upload date:
- Size: 45.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73947fe44bc8440ecad1e68c9b9505bc6198d7e1d5496cfddfe0055bbf3defa |
|
MD5 | ceec58dcc93e3952eec0711c0c5e8ab2 |
|
BLAKE2b-256 | 8a8e3bd1b663ad5d88afebaefd7002bfd5ec16f0d790da64bf22429dc131f4c6 |
File details
Details for the file python_vncorenlp-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: python_vncorenlp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 46.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e8144309cb9aadb38ff527543d149d3677e8001a1418e3941715c7fcca2723 |
|
MD5 | abce2df940872de2915e071b2acf2e83 |
|
BLAKE2b-256 | ba9631f3a125abf5c62e1c4c86729a099f8920fe82a794e36888239bec34a5dc |