boberle / corefconversion

Conversion scripts for coreference
Mozilla Public License 2.0
27 stars 4 forks source link

Uploading to PyPI #9

Closed ianporada closed 9 months ago

ianporada commented 9 months ago

I find the functions in conll_transform quite useful and suggest packaging and uploading to PyPI if it's not too much trouble.

boberle commented 9 months ago

Yes, this is a good idea :smile:. I will try to do that this week!

ianporada commented 9 months ago

Awesome! I made an example at https://test.pypi.org/project/conll-coref-transform/ containing the conll_transform file to use in the meantime:

pip install -i https://test.pypi.org/simple/ conll-coref-transform
from conll_coref_transform import conll_transform
boberle commented 9 months ago

Sorry for the delay. I have uploaded it to PyPI. It is accessible here, with the list of functions that are available in the package. You can install it with:

pip3 install conll-transform

To use it, just import the functions from conll_transform, for example:

from conll_transform import read_files

documents = read_files("myfile.conll", "myfile2.conll")
print(documents)