Extract ESCO skills from texts such as job descriptions or CVs
Project description
ESCO Skill Extractor
This is a a tool that extract ESCO skills from texts such as job descriptions or CVs. It uses a special embedding model that allows prompts, called instructor
.
Installation
pip install esco-skill-extractor
Usage
from esco_skill_extractor import SkillExtractor
# `device` kwarg is optional and defaults to 'cpu', `cuda` or others can be used.
# `threshold` kwarg is optional and defaults to 0.8, it's the cosine similarity threshold.
skill_extractor = SkillExtractor()
ads = [
"We are looking for a software engineer with experience in Java and Python.",
"We are looking for a devops engineer. Containerization tools such as Docker is a must. AWS is a plus."
# ...
]
print(skill_extractor.get_skills(ads))
# Output:
# [
# [
# {
# "id": "bf4d884f-c848-402a-b130-69c266b04164",
# "label": "apply basic programming skills"
# }
# ],
# [
# {
# "id": "f0de4973-0a70-4644-8fd4-3a97080476f4",
# "label": "DevOps"
# },
# {
# "id": "1b2ec9bb-ba7c-4f93-87ac-ec712c9b68c3",
# "label": "install containers"
# },
# {
# "id": "6b643893-0a1f-4f6c-83a1-e7eef75849b9",
# "label": "develop with cloud services"
# }
# ]
# ]
Considerations
While there's been some effort to make the model ignore irrelevant information such as company names, contact information, recruitment hustle and others, the model still tries to extract skills from them sometimes.
For instance a salary range could be interpreted as a skill determine salaries
.
It is advised to clean the texts before passing them to the model if possible.
How it works
- It creates embeddings from esco skills found in the official ESCO website.
- It creates embeddings from the input text (one for each sentence).
- It compares the embeddings of the text with the embeddings of the ESCO skills using cosine similarity.
- It returns the most similar esco skill per sentence if its similarity passes a predefined threshold.
References
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for esco_skill_extractor-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50250414e86ffb6b0f61fcb6ae2b612513007984a9439bc605f03f3302a6b4f0 |
|
MD5 | c7b977fe303b23b4898f90701c6a694b |
|
BLAKE2b-256 | f55c31607d92ee3e247f71a9405cb8c83ebfe74e4de7dab9622c407ba3a63efe |
Close
Hashes for esco_skill_extractor-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5838e72da4ac9147aa3b2fd7fbc08b42488922e6194218581bce41f91fae00 |
|
MD5 | 859fbd06a09d33fe485d377f62529b96 |
|
BLAKE2b-256 | ea1732b6203250065cd37be9c67d460771e5453486ee9c28001926e32c6a87df |