Commit ·
1f1c126
1
Parent(s): a8cdd20
upload bigbiohub.py to hub from bigbio repo
Browse files3 unmodified lines4567891011121314147 unmodified lines1621631641651661671683 unmodified linesimport loggingfrom pathlib import Pathfrom types import SimpleNamespacefrom typing import Dict, Iterable, List, Tupleimport biocimport datasetslogger = logging.getLogger(__name__)147 unmodified lines)def get_texts_and_offsets_from_bioc_ann(ann: bioc.BioCAnnotation) -> Tuple:offsets = [(loc.offset, loc.offset + loc.length) for loc in ann.locations]3 unmodified lines456789101112131415147 unmodified lines1631641651661671681693 unmodified linesimport loggingfrom pathlib import Pathfrom types import SimpleNamespacefrom typing import TYPE_CHECKING, Dict, Iterable, List, Tupleimport datasetsif TYPE_CHECKING:import bioclogger = logging.getLogger(__name__)147 unmodified lines)def get_texts_and_offsets_from_bioc_ann(ann: "bioc.BioCAnnotation") -> Tuple:offsets = [(loc.offset, loc.offset + loc.length) for loc in ann.locations]
bigbiohub.py+4-3