meghajain-1711 / Polyglotter

Code for "Translating synthetic natural language to database queries: a polyglot deep learning framework"
0 stars 0 forks source link

Create Format Checker for config.yaml #13

Closed meghajain-1711 closed 3 years ago

meghajain-1711 commented 3 years ago

Pipeline script is accepting config.yaml file for the user input. Need to implement a format checker for the same

meghajain-1711 commented 3 years ago

Trials :

  1. Design 1 : Create a separate class and compare the keys. { Nested keys was leading to a lot of if else }
  2. Design 2 : Using Cerberus Validator. Worked great but trying without additional module overhead. ALso dependent on schema file. This was also taking care of validating the type of input.
  3. Design 3: Just focus on validating the most required variables to exist in the config. We should not be concerned with the optional variables.