why do you use read_config which reads yaml to read json ! #178
Answered
by
imhalcyon
abdelkareemkobo
asked this question in
Q&A
-
in the file get_similarity_score.py the init contain
the read_config() itself read yaml files! not json ! |
Beta Was this translation helpful? Give feedback.
Answered by
imhalcyon
Oct 2, 2023
Replies: 1 comment
-
yaml.safe_load can be used to read JSON : https://faun.pub/python-tips-working-with-json-vs-yaml-70c100ca458b Also, the section that you're referring to was probably used for unit testing which is the reason for hard-coding resume JSON file path. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
abdelkareemkobo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yaml.safe_load can be used to read JSON : https://faun.pub/python-tips-working-with-json-vs-yaml-70c100ca458b
Also, the section that you're referring to was probably used for unit testing which is the reason for hard-coding resume JSON file path.