Skip to content
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

NCES in ontolearn-webservice #408

Open
Demirrr opened this issue Jun 6, 2024 · 0 comments
Open

NCES in ontolearn-webservice #408

Demirrr opened this issue Jun 6, 2024 · 0 comments
Assignees

Comments

@Demirrr
Copy link
Member

Demirrr commented Jun 6, 2024

It would be great if you could integrate NCES into ontolearn-webservice.

import json
import requests
with open(f"LPs/Mutagenesis/lps.json") as json_file:
    learning_problems = json.load(json_file)["problems"]
for str_target_concept, examples in learning_problems.items():
    response = requests.get('http://0.0.0.0:8000/cel',
                            headers={'accept': 'application/json', 'Content-Type': 'application/json'},
                            json={"pos": examples['positive_examples'],
                                  "neg": examples['negative_examples'],
                                  "model": "NCES",
                                  "path_embeddings": "...",
                                  "path_to_pretrained_model": "..",
                                   ... # other model related parameters
                                  })

Could you take care of it @Jean-KOUAGOU ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants