Metadata-Version: 2.1
Name: antx
Version: 0.1.2
Summary: Transfer annotations from source text to destination using diff match patch.
Home-page: https://github.com/Esukhia/annotation_transfer
Author: Ngawang Thrinley, Tenzin, Tenzin Kaldan
Author-email: esukhiadev@gmail.com
License: Apache2
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: diff-match-patch (==20181111)
Requires-Dist: PyYAML (==5.1.2)
Requires-Dist: regex (==2020.5.7)
Requires-Dist: requests (==2.24.0)

# antx - Annotation Transfer
Transfer annotations from source text to destination using diff match patch.

![Test](https://github.com/Esukhia/annotation_transfer/workflows/Test/badge.svg)
[![PyPI version](https://badge.fury.io/py/antx.svg)](https://badge.fury.io/py/antx)

## 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. 


