Skip to main content

Transfer annotations from source text to destination using diff match patch.

Project description

antx - Annotation Transfer

Transfer annotations from source text to destination using diff match patch.

Test PyPI version

Usage

Install using pip.

$ pip install antx

Import

from antx import transfer

Transfer

new_target = transfer(source_text, target_text, annotations, output="txt", optimized=True)

source_text := contains source text

target_text := contains target text

annotations := contains list of annotations in source text that you want to transfer to target text

output := Flag to indicate type of output. It can be txt or yaml.

optimized := Boolean flag to choose whether you want to proceed with node dmp or not. By default it is set to true.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for antx, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size antx-0.1.2-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size antx-0.1.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page