Code Monkey home page Code Monkey logo

Comments (9)

SpyzzVVarun avatar SpyzzVVarun commented on September 7, 2024 1

We can close the previous issue and update this one.

from omrchecker.

SpyzzVVarun avatar SpyzzVVarun commented on September 7, 2024 1

In #43 we added a json schema, which is basically a blueprint for the input template.json file, that validates the template file and we wrote a function that validates the template using python jsonschema library. Both the schema and the error messages need a lot of improvement and that is where this issue comes in.

  1. Talking about improvements in the validation schema, we have to write the constraints in much more detail. By constraint I mean for eg: the dimensions key should only take in an array of 2 integers, so if the number of integers don't match, it should give a proper error message. So, detailed constraints have to be included in the schema.

  2. Regarding the error messages, currently we only print the key where the error takes place (key comes from schema and not the input template which is a problem) and we print a default error message which is not sufficient currently. So we need to improve the error messages, add a warning/error info/level and also find a way to get the key with the error from the input template.json instead of the schema (for cases of spelling mistake or case mistake in the keys).

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024 1

@SpyzzVVarun are you available to work on this now?

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024

Well detailed breakdown 👍
you(and others) can raise PRs in small mergeable/deliverable chunks as we discussed yesterday.

Reiterating that discussion here as well for reference -

I'll share a concept I shared with one of you recently.

This comes from Agile development practiced in the industry.

image

Each small ball is a small change that is eligible for merge.

Break the task down into as many parts as possible, as long as one meaningful PR for each of the parts exists. This helps in teams and communities to work independently and efficiently

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024

@SpyzzVVarun adding few more criteria

  • inner schema of each QBlock should be validated too.
  • singles array should not contain duplicate qNos
  • concatenations keys + arrays should not contain duplicate qNos

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024

This issue needs a bit more attention now. Bumping updated time with this comment.

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024

Marking issue as easy since a few improvements have been merged in the evaluation + revamp PR #118

from omrchecker.

anaghninja432 avatar anaghninja432 commented on September 7, 2024

Sir i would like to contribute to this project. Please tell me how, I'm pretty new to Open Source.

from omrchecker.

Udayraj123 avatar Udayraj123 commented on September 7, 2024

@anaghninja432 Hello, if you're new to the project I suggest you to run the project locally on a new OMR sheet and submit a sample. Then in the process try to go through the code flow for your images. This task is around schema validation so you can experiment passing incorrect template jsons by thinking of common mistakes people can do. We need to provide accurate error messages to guide the user

from omrchecker.

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.