a b/medacy/data/data_file.py
1
import os
2
from dataclasses import dataclass
3
4
5
@dataclass
6
class DataFile:
7
    """
8
    DataFile wraps all relevant information needed to manage a text document and it's corresponding annotation. Specifically,
9
    a Datafile keeps track of the filepath of the raw text, annotation file, and metamapped file for each document.
10
11
    :ivar file_name: the name of the file being represented
12
    :ivar txt_path: the text document corresponding to this file
13
    :ivar ann_path: the annotations of the text document
14
    :ivar metamapped_path: the metamap file
15
    """
16
    file_name: str
17
    txt_path: os.PathLike
18
    ann_path: os.PathLike
19
    metamapped_path: os.PathLike = None