PyMateTools

Python interface for mate-tools written by Java.


Keywords
SRL, semantic, role, labeling, NLP, natural, language, processing, mate-tools, Tools, for, Analysis
License
Apache-2.0
Install
pip install PyMateTools

Documentation

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