This repo contains the codes developed for ingredient extraction from recipe sentences using a combination of character embedding + word embedding BERT model. This is especially useful and efficient in cases where the entity is mispelled. (e.g, 1 cup of suger) The code is developed using pytorch lightning , experients are monitored using MLflow and config management using Hydra.
This section will guide you through setting up and installing Docker on your machine. Docker allows you to package and run applications in isolated containers, ensuring consistency across different development and deployment environments.
- Download the Installer:
- Follow the on-screen instructions to complete the installation. After installation, restart your computer.
- Download the Installer :
- Follow the link and downloaded the installer.
- Open the downloaded .dmg file and drag the Docker icon to your Applications folder.
- Open Docker from your Applications to complete the installation.
Verify Installation: Open a terminal and type docker --version to see the Docker version.
Explore the Docker CLI with commands like docker info and docker help. For detailed documentation and tutorials, visit the Docker Documentation page.
This section provides basic commands to build your Docker container and manage multi-container applications using Docker Compose. For a more seamless development experience, it is recommended to use the Docker extension for Visual Studio Code, which allows you to manage Docker containers directly from the IDE.
To build a Docker image from a Dockerfile, use the following command:
docker build -f Dockerfile .This command builds a Docker image based on the instructions in your Dockerfile. The -f flag specifies the Dockerfile to use, and the . indicates that the build context is the current directory.
To start all services defined in your docker-compose.yml file, use:
docker-compose upAdd the -d flag if you prefer to run the containers in detached mode:
docker-compose up -dThis runs the containers in the background, allowing you to continue using the terminal while your containers are running. This mode is often used in production deployments or when you do not need to view the output directly in the terminal.
Search for Docker and install the Docker extension provided by Microsoft. This extension simplifies managing Docker images and containers from within the IDE.
Once your container is up and running, open the Docker view in Visual Studio Code. In the Containers section, you will see your running containers. Right-click on the container you want to work with and select "Attach Visual Studio Code". This will open a new VS Code window connected to the container.
You can now run, edit, and debug your code directly inside the container, ensuring that your development environment matches your deployment environment closely.
By following these steps, you set up an efficient workflow for developing and testing Dockerized applications directly within Visual Studio Code.