Skip to content

Sklearn and Numpy Dependencies when installing REL from source (Option 3) #159

@leventidis

Description

@leventidis

I am trying to run a simple local server by installing REL from source (Option 3) (Following the tutorial from: https://rel.readthedocs.io/en/latest/tutorials/e2e_entity_linking/)

I have also downloaded the generic and wiki_2014 corpus that are linked in github

However, I am running into package versioning issues. For instance just running EntityDisambiguation() I get the following:

model = EntityDisambiguation(base_url, wiki_version, config)
File "/home/aristotelis/Documents/REL/env/lib/python3.8/site-packages/REL/entity_disambiguation.py", line 67, in __init__
    self.model_lr = pkl.load(f)
ModuleNotFoundError: No module named 'sklearn.linear_model.logistic'

I tried downgrading scikit-learn (e.g., 0.22.0) but then I get numpy float depreciation errors. The requirements.txt doesn't specify versions for these packages

What versions of scikit-learn and numpy should be used to correctly load the models provided? Are there any other specific version of packages needed in order to successfully run the example in https://rel.readthedocs.io/en/latest/tutorials/e2e_entity_linking/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions