Closed fanavarro closed 2 years ago
Hi Fran
The version in the python repository may not be the latest as in the GitHub repo. We need to check this.
I'm attaching the instructions to run owl2vec given to my students, I hope it helps.
Ernesto
El lun, 31 oct 2022 a las 10:05, Francisco Abad @.***>) escribió:
Hi, I am trying to use OWL2Vec Star from my python application. I am using PyCharm for developing my app, and I've included the OWL2Vec star library into my virtual environment by using PyCharm (I think it uses pip).
I've found the following function in owl2vec_star/owl2vec_star.py, which seems to be what I am looking for: [image: imagen] https://user-images.githubusercontent.com/11376639/198981236-b017358a-0808-4066-81ac-bede8e69ae84.png
Then, to use it, I am doing something like:
import owl2vec_star
model = owl2vec_star.extract_owl2vec_model(ontology_file, config_tmp_name, uri_doc=None, lit_doc=None, mix_doc=None)
However, I am getting the following error:
AttributeError: module 'owl2vec_star' has no attribute 'extract_owl2vec_model'
Then, I have inspected the files downloaded from pip: [image: imagen] https://user-images.githubusercontent.com/11376639/198982508-a12a6a37-0676-41cf-9126-be3b41aac8c9.png
And I've seen that the file 'owl2vec_star.py', downloaded from the python pip repositories, is empty: [image: imagen] https://user-images.githubusercontent.com/11376639/198982749-ffd61dae-b283-4b9b-b570-cf96693a7482.png
Is this an error while uploading the library to the python repositories? Or am I missing something?
My virtual environment is based on Python 3.8, and the version of OWL2Vec star that is being downloaded from the python repository is 0.2.0.
Kind regards and thanks for your time. Fran.
— Reply to this email directly, view it on GitHub https://github.com/KRR-Oxford/OWL2Vec-Star/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYLZ6RUMFALSO3ZLSDJIJ3WF6KWZANCNFSM6AAAAAARS5F7VI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Ernesto Jiménez-Ruiz Lecturer in Artificial Intelligence
Department of Computer Science School of Science & Technology City, University of London https://www.city.ac.uk/people/academics/ernesto-jimenez-ruiz
Hi @ernestojimenezruiz , thanks for your quick answer. I cannot see any file attached in your response, maybe due to github issues. Nonetheless, I've installed the library from the github repo and it is working. I am also checked that the version from pip is 0.2.0, meanwhile the github one is 0.2.1.
Thanks again and have a nice day!
Hi, I am trying to use OWL2Vec Star from my python application. I am using PyCharm for developing my app, and I've included the OWL2Vec star library into my virtual environment by using PyCharm (I think it uses pip).
I've found the following function in
owl2vec_star/owl2vec_star.py
, which seems to be what I am looking for:Then, to use it, I am doing something like:
However, I am getting the following error:
AttributeError: module 'owl2vec_star' has no attribute 'extract_owl2vec_model'
Then, I have inspected the files downloaded from pip:
And I've seen that the file 'owl2vec_star.py', downloaded from the python pip repositories, is empty:
Is this an error while uploading the library to the python repositories? Or am I missing something?
My virtual environment is based on Python 3.8, and the version of OWL2Vec star that is being downloaded from the python repository is 0.2.0.
Kind regards and thanks for your time. Fran.