xiaoqiangkx / py-mate-tools

python interface for mate tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyMateTools

Python interface for mate-tools written by Java.

install

  • download the install package
  • thanks to the limit of file size uploading to GitHub, you should download the models first and put the four models in "PyMateTools/models/" directory.
  • python setup.py install

usage

import sys, os
from PyMateTools import matetools

mate_tools = matetools.MateTools()
testdata = ['I saw a dog chasing a cat.', 'I love you.']
cwd=os.getcwd()

mate_tools.SRL( testdata, verbose = True, result_file_path = cwd )
print ("done")

when you do above, you can get a result file ("result.out") in your working directory.

demo website

mate-tools demo

About

python interface for mate tools

License:GNU General Public License v2.0


Languages

Language:Python 82.3%Language:Shell 17.7%