Closed TaniaPash closed 4 years ago
Hello Tania,
I think this is a good idea, anyway, "toannotate" and "annotated" should not be hard-coded in term-annotator.
I suggest you add 2 fields into the term-annotator configuration :
If "sourceSubDir" does not exists, then term-annotor will use directly
Same behavior for "destSubDir" folder
hi @smitajha
Could you please test a new data-set structure?
<data-set.zip>/annotated
see https://github.com/teamklap/wiki/pull/980
data-set/toannotate
data-set/annotated
The User should choose the main folder (data-set) as the source directory to start annotation.
<data-set.zip>
(shared below)data-set
(folder)data-set
(folder)data-set-name/annotated
folderdata-set
of the unzipped annotation data setdata-set/annotated/
folderDataset structure is not valid, Please check documentation
done. closing
Actual
The Output directory (dir were stored all annotated files) is hardcoded in a config file.
Expected
The Output directory should be stored in same folder as the source directory. see an example below: -> gifs-to-annotate/ -> gifs-to-annotate/toannotate -> gifs-to-annotated/annotated
Workflow to implement
• The zip will be like
<dataset>.zip/toannotate/
• Once unzipped it will be like<folder>/toannotate/ ...
• The user will have to select<folder>
as source instead of<folder>/toannotate
• If the source folder does not contain any toannotate -> raise an errorDataset structure is not valid, Please check documentation
• If the source folder contains toannotate folder then check if an annotated folder exists • If annotated folder does not exists, create it in<folder>/annotated/
• Use this<folder>/annotated/
as annotation destination (instead of config file)Also, after this first step is done, do a sanity check on the database (this include toannotate vs annotated but also files inside annotated folder):
• list all the files in all the source and dest directories • Make sure that the files names are all unique • If not raise an error
Dataset is corrupted, duplicated files, please contact administrator