Comments (3)
I had a peek at db.py and it seems the index of a task is used as part of the JSON file name. (e.g. in 1.json, 2.json and so on, the 1,2 etc are the index of the task in task.json).
from label-studio.
Hey,
I'd suggest taking a look at one of the tasks.json
found in examples, it's basically a list of JSON objects. Each key in that object you can further use in the config, for example, a JSON file like this:
[{ "text": "Piece of text" }, { "text": "Piece of text" } ]
And config:
<View><Text name="txt" value="$text"></Text></View>
As you can see $text
will be connected to every object in the JSON file. If you create a completion for you will get 1.json
and 2.json
.
Please let me know if that answers your question.
from label-studio.
@deppp
Thanks for your reply.
What I was looking for was how the relation of 1.json with first "text" or 2.json with second "text" (and so on) is determined. To me it looks like following:
- Task records in the tasks.json are given index starting from 1.
- Completion files (1.json, 2.json andso on) are rerlated back to their tasks by the number that appears in their name (1,2,etc) and the index of the task as determined by above. That is, 1.json is related to task at index 1 and 2.json is related to task at index 2...
Please correct me if I am wrong.
from label-studio.
Related Issues (20)
- duplicate key value violates unique constraint "io_storages_localfilesexportstoragelink_annotation_id_key" DETAIL: Key (annotation_id)=(25) already exists. HOT 2
- Bounding boxes displaced in the image. HOT 2
- 'dict' object has no attribute 'decode' HOT 2
- Can load images from local storage, but not videos HOT 2
- Enhanced Crosshair Cursor for Labelling HOT 4
- Database env vars are not read HOT 4
- [Feature Request] - Candlesticks for financial time series annotation HOT 1
- Import example pre annotation data do not import label
- Can't annotate with docker: $undefined$ value HOT 1
- file filtere regex parse is error HOT 1
- Rendering bounding boxes produced by ML model results in application hanging HOT 1
- Annotations for PDFs HOT 2
- Cannot Log In on Another Computer Even With Matching Passwords and Emails HOT 2
- Anchor broken on the website HOT 1
- drafts information from paginated query List project tasks HOT 2
- Labeling Interface won't finish loading for simple TextArea labeling task with pre-annotation. HOT 2
- mp4 video rendering errors during annotation HOT 3
- how to convert other format to Basic Label Studio JSON format HOT 1
- Runtime error with LOCAL_FILES_SERVING_ENABLED HOT 2
- Question about Label Studio DB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from label-studio.