Skip to content

bjut-hz/py-mate-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. (can be found here*)
  • python setup.py install

Links to individual model files:

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published