ufal / udpipe

UDPipe: Trainable pipeline for tokenizing, tagging, lemmatizing and parsing Universal Treebanks and other CoNLL-U files
Mozilla Public License 2.0
359 stars 75 forks source link

Problems to run udpipe2_server.py #168

Closed rjzevallos closed 1 year ago

rjzevallos commented 1 year ago

Can someone tell me with an example how is the syntax to run udpipe2 as server please?

foxik commented 1 year ago

Hi,

I have added that example to the UDPipe-2 readme at https://github.com/ufal/udpipe/tree/udpipe-2#example.

rjzevallos commented 1 year ago

Thank you so much. I've tried it and great! I would like know to use udpipe_client.py with an example please. Sorry for the inconvenience.

foxik commented 1 year ago

Hi,

this place is meant to report errors etc. of the implementation, not as a user support forum (we unfortunately do not have resources for that) -- you can maybe try using Stack Overflow and similar for getting support.

That being said, https://github.com/ufal/udpipe/blob/udpipe-2/udpipe2_client.py is just a thin wrapper over the REST API. When you run it with --help (or if you look in the source), it includes a link describing most of the options; the only additional ones are --service (specifying service URL, so something like http://localhost:port if you started your local server) and --outfile.