Skip to content

Broken examples #259

@matthaeusheer

Description

@matthaeusheer

Hey

I just started using skills-ml and going through the examples. Some of them seem to be broken.

Example: Creating Corpus and Sampled Corpus

In section Creating Corpus with Criteria


KeyError Traceback (most recent call last)
in
----> 1 major_group = list(map(lambda c: c['onet_soc_code'][:2], corpus))

in (c)
----> 1 major_group = list(map(lambda c: c['onet_soc_code'][:2], corpus))

KeyError: 'onet_soc_code'

Filtered by Full O*NET SOC Code

Same as above.

In section Sampling from Corpus


TypeError Traceback (most recent call last)
in
1 from skills_ml.job_postings.sample import JobSampler
----> 2 job_sampler = JobSampler(corpus, random_state=42)
3 corpus = job_sampler.sample(10)

TypeError: init() missing 1 required positional argument: 'k'

In Reservoir Sampling


TypeError Traceback (most recent call last)
in
1 job_postings_generator = JobPostingCollectionSample()
----> 2 corpus = CorpusCreator(job_postings_generator, filter_func=major_group_filter_func)

TypeError: init() got an unexpected keyword argument 'filter_func'

If you are interested I might update this list. I am very interested in using skills-ml and familiarize myself with the functionalities.

Best,
Matthäus

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