-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: substring not found #290
Comments
having the exact same error... |
Let edit line number 262 in file algorithms/nlp/init.py : |
I have exactly the same problem. @khieunguyen But I made the change that u mentioned above and didn't solve my problem!
|
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
The text was updated successfully, but these errors were encountered: