udapi.tool.udpipeonline module

Wrapper for UDPipe online web service.

class udapi.tool.udpipeonline.UDPipeOnline(model, server='https://lindat.mff.cuni.cz/services/udpipe/api')[source]

Bases: object

Wrapper for UDPipe online web service.

list_models()[source]
perform_request(params, method='process')[source]
segment_text(text)[source]

Segment the provided text into sentences returned as a Python list.

tag_parse_tree(root, tag=True, parse=True)[source]

Tag (+lemmatize, fill FEATS) and parse a tree (already tokenized).

tokenize_tag_parse_tree(root, resegment=False, tag=True, parse=True)[source]

Tokenize, tag (+lemmatize, fill FEATS) and parse the text stored in root.text.

If resegment=True, the returned list of Udapi trees may contain multiple trees.