You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import spacy
from ojd_daps_skills.extract_skills.extract_skills import SkillsExtractor
sm = SkillsExtractor(taxonomy_name="esco")
nlp = spacy.blank('en')
skills_per_ad = [['computer IT', 'excel', 'maths skills'], ['communication']] # List of skills for each job advert
docs = []
for skills_list in skills_per_ad:
doc = nlp("text") # it doesn't matter what this is as it won't be used
doc._.skill_spans = skills_list
docs.append(doc)
mapped_skills = sm.map_skills(docs)
for m in mapped_skills:
print(f"Skill spans: {m._.skill_spans}")
# print mapped skills to the "esco" taxonomy
print(f"Skills mapped: {m._.mapped_skills}")
print("\n")
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: