Repository navigation
Description
Hi 👋 Thanks for this great repo--I really liked how smart the tool is, especially being able to extract "Project Management" from the phrase "manage projects". I'd love to hear what you think about the following use case:
Is your feature request related to a problem? Please describe.
I am looking to use your tool with a custom skill list other than EMSI, e.g. O*NET skill lists
Describe the solution you'd like
- It would be great to have API support for a custom skill list. However, I understand that this could involve a lot of work.
- Alternatively, an instruction on how to create the
skill_db_relax_20.jsonandtoken_dist.jsonfiles for custom skill lists would also be much appreciated.
Describe alternatives you've considered
I have traced the code a little bit, and found that we would probably need
skill_db_relax_20.json, which seems to be generated withskills_processor/create_surf_db.pybased ontoken_dist.jsonandskills_processed.json, andtoken_dist.json, which seems to be generated withskills_processor/create_token_dist.pybased onskill_db_relax_20.json
My questions are:
- Could you provide more description/script on how
skills_processed.jsonis generated? More specifically, what are the rules (or data sources) that determine the following fields:unique_token,match_on_stemmed? - Per my previous observation, the required files for generating
skill_db_relax_20.jsonandtoken_dist.jsonseems to be circular--they require each other to be generated.. What should be the correct order?- Correct me if I'm wrong, it looks like
token_dist.jsoncould be generated first, withn_gramsin this line being a list of strings of lowered, lemmatized skill titles (only if skill title is more than 1 word; otherwise it's the lowered skill title without the parenthesis).
- Correct me if I'm wrong, it looks like
Additional context
Once the two questions are resolved, I would be happy to write a modularized script that generates skills_processed.json, skill_db_relax_20.json, and token_dist.json from any given skill list/table, and create a pull request for it.
Looking forward to hearing from you 😃
Activity
AnasAito commentedon May 4, 2022
Hello @yonglin-wang Thank you for this detailed issue. Actually, we had the same idea back when we started SkillNer, but we put it on hold to see how it works first with a simple hard-coded list.
But yes, as you said, it will be good to put in a pipeline to generate the two JSONs
token_dist.jsonandskill_db_relax_20.jsonWhat's next ?
What do you think ?
yonglin-wang commentedon May 4, 2022
Thank you for the prompt followup @AnasAito ! Yes, it sounds like an awesome plan to me. I'll keep an eye out for the MD file and start building the pipeline once it's ready.
Having a generalized skill metadata sounds like a great idea too, but personally I would probably give it a slightly lower priority than generating the two files, just because skill type seems to be quite a common tag in the other skill lists I've seen as well.
Looking forward to the collaboration 😁
AnasAito commentedon May 4, 2022
Hello @yonglin-wang , I finished the MD file with code utils that will speed your pipeline creation . I guess it will be strain forward now to generate the two files.
check this : how_new_db
Happy coding !