Skip to content

ValueError: substring not found #290

@nawabhussain

Description

@nawabhussain

Any Idea what is wrong here?

Traceback (most recent call last):
File "/home/nawab/Documents/Project/skills-ml/examples/SkillExtractionEvaluation.py", line 60, in
candidate_skills = candidate_skills_from_sample(sample, skill_extractor)
File "/home/nawab/Documents/Project/skills-ml/skills_ml/evaluation/skill_extractors.py", line 21, in candidate_skills_from_sample
skill_extractor.candidate_skills(json.loads(line))
File "/home/nawab/Documents/Project/skills-ml/skills_ml/algorithms/skill_extractors/section_extract.py", line 31, in candidate_skills
spans_in_section = section_extract(self.section_regex, source_object['description'])
File "/home/nawab/Documents/Project/skills-ml/skills_ml/algorithms/nlp/init.py", line 228, in section_extract
start_index=unit.start_index + unit.text.index(stripped)
ValueError: substring not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions