Releases: Savanamed/pycaprio
Releases · Savanamed/pycaprio
0.2.0 Release
0.2.0
This release adds CRUD Curation operations.
from pycaprio.mappings import InceptionFormat
# Get the annotations or a specific document as e.g. binary CAS
file = client.api.annotation(1, 4, 'test-user', curation_format=InceptionFormat.BIN)
# The below function then uploads the file with the new status
client.api.create_curation(1, 4, curation_format = InceptionFormat.BIN, content = annotations, document_state = DocumentState.CURATION_IN_PROGRESS)
Changelog
PYCAP #33 : Add CRUD Curation operations
PYCAP #34 : Fix documentation of curations not rendering as it should
0.1.0 Release
0.1.0
This release introduces sugar syntax for the HttpInceptionAdapter
.
It allows the usage of pycaprio
's Project
, Document
objects into the main api methods:
project = pycaprio_client.api.project(1)
documents = pycaprio_client.api.documents(project) # It works now!
documents = pycaprio_client.api.documents(project.project_id) # Passing the project id still works
for document in documents:
annotations = pycaprio_client.api.annotations(project, document) # Document also works!
Changelog
PYCAP #28: Allows pycaprio objects into http adapter methods.
0.0.3 Release
0.0.3
This is a bugfix release.
Changelog
Changes to InceptionFormat
to include all available formats.
Some names are kept for compatibility reasons, but will be removed in the 0.1.0
release.
Now InceptionFormat.DEFAULT
points to text
.
New list is the following:
DEFAULT = 'text'
BIN = 'bin'
CONLL2000 = 'conll2000'
CONLL2006 = 'conll2006'
CONLL2009 = 'conll2009'
CONLLCORENLP = 'conllcorenlp'
CONLLU = 'conllu'
CTSV = 'ctsv'
CTSV3 = 'ctsv3'
DKPRO_CORE_TEI = 'dkpro-core-tei'
TEI = 'dkpro-core-tei'
HTML = 'html'
LIF = 'lif'
NIF = 'nif'
PDF = 'pdf'
PERSEUS_2_1 = 'perseus_2.1'
PUBANNOTATION_SECTIONS = 'pubannotation-sections'
TCF = 'tcf'
TEXT = 'text'
TEXTLINES = 'textlines'
TSV = 'tsv'
XMI = 'xmi'
PERSEUS = 'perseus_2.1'
WEBANNO = 'tsv'
JSON = 'json'
Fix #22.
v0.0.2rc5
v0.0.2rc4
- DocumentFormats -> InceptionFormat
- DocumentStatus -> DocumentState
- AnnotationStatus -> AnnotationState
- format -> document_format, annotation_format, project_format
v0.0.2rc03
Changelog
- Add
format
parameter toexport_project()
#4
v0.0.2rc2
Merge branch 'hotfix/v0.0.2rc2'
v0.0.2rc01
v0.0.2rc01