fani-lab / LADy

LADy 💃: A Benchmark Toolkit for Latent Aspect Detection Enriched with Backtranslation Augmentation
Other
3 stars 4 forks source link

Setup and Quickstart #53

Closed farinamhz closed 11 months ago

farinamhz commented 1 year ago

Hey @arfaamr,

This is an issue page to log your progress in setting up and running the project. Feel free to reach out if you have any concerns or questions.

@hosseinfani

farinamhz commented 1 year ago

@3ripleM. Hey Medi, If you provide a little description of dockerization here for Arfaa, as we discussed, that would be great!

3ripleM commented 1 year ago

Hi, I've updated the readme of the project already. @arfaamr could you please run the container based on that?

docker run -it --name lady_container ghcr.io/fani-lab/lady:main

you just have to run above command. but before that make sure you have installed Docker engine on your computer.

arfaamr commented 1 year ago

Hi, I have installed Docker and run the command, and can see the container for it in the Docker desktop app. I'm not familiar with Docker so it may take me some time to understand exactly what's happening. I am away this weekend, but will continue with the setup next week. Thank you for your help.

arfaamr commented 1 year ago

Hi, I'm not really sure where to go next. I tried following the next few steps listed in the README. It lists ./src/cmn, etc. to install some libraries. I assumed I should run these in the LADy container's shell, is that correct? It gives "Permission denied" errors, but I'm not sure why. Could I get some guidance?

Screenshot 2023-09-28 at 9 58 04 PM
3ripleM commented 1 year ago

Hi @arfaamr,

Actually, those are some directories, and you cannot execute directories like that. By running the container, you are using the full image of the LADy project, where all dependencies (libraries) are already installed in the Docker image. You can now proceed to the next step (Quickstart).

The reason for using Docker is reproducibility. To gain a deeper understanding of how an image is created, you can read the Dockerfile, where the setup process has been documented. Docker can be seen as an isolated container with its own files and libraries inside it, and it cannot use libraries from the machine on which it is running. Although the new version has some bugs, I'm working on fixing them. Some machines cannot run it at the moment, but if you are using the previous version of the Dockerfile, you are good.

In addition, I wanted to let you know that I spoke with Dr. Fani a while ago, and our new tasks involve "running" two libraries (BERT-E2E-ABSA and CAT) used in this project. We will be working on aspect-based sentiment analysis in the future. I have some suggestions for the running step, where I will create a new issue page, and we can discuss them there.