Closed bohJiang12 closed 2 weeks ago
clams-python
to 1.2.5
TimeFrame
s containing wanted labels, for example, "slate", "credits", "bars", etc..mmif
file exported by the whisper-wrapper
that I run at the very first time, an edge case for TimeFrame
was its start
and end
properties were the same, therefore an assertion error would be raised since our get_annotations_between_time
feature assumed start < end
. So probably we need to fix this assertion to tolerate this edge case so that start <= end
?TimeFrame
, I implemented its type as str
. Then, it's fine for users choose only one label, that is, 'credits'
for example. However, if multiple labels are selected, like "credits, slate, chyron"
, I need to tokenized this parameter into a list of str
as ['credits', 'slate', 'chyron']
. Since my initial and ideal thought towards this input format is to ask users to give a list/array, however, it seems that the app has no such type option. Do you think the str
type input is enough for the app? This is the updated app implementations that
clams-python=1.2.5
in Containerfile
multivalued=True
for the parameter containLabels
_get_label
by get_property
Annotation
's id using long_id
property
Implementations
_metadata
and_annotate
Results
The sliced text results are tested via:
view
is added into the input.mmif
filetext_document_helper.slice_text
ofclams-python=1.2.4
Questions
TextDocument
be one of the inputs in app's metadata rather than onlyTimeFrame
(while usingadd_input
function)?