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.
Usage
Install using pip.
$ pip install antx
Import
from antx import transfer
Transfer
new_target = transfer(source_text, annotations, target_text, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
antx-0.1.3.tar.gz
(5.0 kB
view hashes)
Built Distribution
antx-0.1.3-py3-none-any.whl
(9.7 kB
view hashes)