Giter Site home page Giter Site logo

Comments (3)

vijaygill avatar vijaygill commented on August 16, 2024

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.

deppp avatar deppp commented on August 16, 2024

@vijaygill

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.

vijaygill avatar vijaygill commented on August 16, 2024

@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:

  1. Task records in the tasks.json are given index starting from 1.
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.