Skip to content

zeerafle/product-sentiment

Repository files navigation

Product Sentiment Analysis

Sentiment analysis with classical text embedding for Tokopedia's product's reviews.

Installation

With PDM (recommended)

  1. Install PDM
    curl -sSL https://pdm-project.org/install-pdm.py | python3 -
  2. Install dependencies (sync environment)
    pdm sync

With builtin virtual environment

  1. Create virtual environment
    python -m venv .venv
  2. Activate the virtual environment
    # .\.venv\Scripts\activate # windows
    ./.venv/bin/activate # linux
  3. Install dependencies
    pip install -r requirements.txt

(Optional) Scraping Configuration

  1. Sign up for Zyte API (for scraping). Modify .env.example to .env and put your API key there. Also follow the guide in Zyte docs to install certificate.
    cp .env.example .env
  2. Run scraping
    pdm run scrape -o reviews.jsonl

Releases

No releases published

Packages

 
 
 

Contributors