udtools (version 0.2.7) provides a suite of Python tools for working with Universal Dependencies (UD) data. It offers functionalities for reading, writing, querying, and transforming CoNLL-U files, as well as integrating with UDPipe. The library is actively maintained with an irregular release cadence, focusing on facilitating linguistic research and processing of dependency parsed text.
pip install udtoolsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a CoNLLUDocument from a string, print its contents, apply a transformation, and add new sentences programmatically, showcasing basic data manipulation without file dependencies.
Always pin `udtools` to an exact version in production environments (e.g., `udtools==0.2.7`) and thoroughly test updates before deploying to ensure compatibility.
Ensure input CoNLL-U files are valid. Use online validators or implement pre-parsing checks before feeding data to `udtools`.
For extremely large datasets, consider processing files sentence by sentence or using generator-based parsing if available, or break down large files into smaller chunks. The current API encourages loading entire documents, so external chunking is the primary workaround.
No dependency data recorded yet.