Skip to content

AnchorText - fix metadata #459

Open
Open
@RobertSamoilescu

Description

@RobertSamoilescu

Currently, all parameters, correct or incorrect (misspelled), are included in the metadata.

self.meta['params'].update(**all_opts)

The valid parameters are stored in self.perturb_opts, which is set along with all_opts in:

# validate kwargs
self.perturb_opts, all_opts = self._validate_kwargs(sampling_strategy=sampling_strategy, nlp=nlp,
language_model=language_model, **kwargs)

This should be an easy fix. Get rid of all_opts and update self.meta['params'] with self.peturb_opts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions