Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #32 from cassiofb-dev/release/v0.1.1
Browse files Browse the repository at this point in the history
Release/v0.1.1
  • Loading branch information
cassiofb-dev committed Apr 27, 2023
2 parents ba82088 + ef777de commit d18d9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/dags/feature_engineering/word_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dags import config
import logging

import logging
import tensorflow_text

# create logger
logger = logging.getLogger(__name__)
Expand All @@ -25,7 +25,7 @@ def generate_embed_features(self,df,coluna = "new_text"):
class USE_embedder(text_embedder):
def __init__(self):
super().__init__()
self.embedder = hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")
self.embedder = hub.load("https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3")

def embed_words(self,word_vector):
embeddings = self.embedder(word_vector)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
working_dir: "/backend"
command: sh -c "
python -m venv venv && . venv/bin/activate && pip install -U pip &&
pip install -U "jax[cpu]" tensorflow-cpu tensorflow_hub scikit-learn nltk gensim pyarrow &&
pip install -U "jax[cpu]" tensorflow-cpu tensorflow_text tensorflow_hub scikit-learn nltk gensim pyarrow &&
pip install -U pandas fastapi "uvicorn[standard]" orjson openpyxl colorlog pyspellchecker coloredlogs &&
cd src && python requirements.py && python run.py task general_tasks task_correct_essays &&
python run.py task general_tasks task_pipeline_essays && uvicorn api:app --host 0.0.0.0 --reload"
Expand Down

0 comments on commit d18d9f7

Please sign in to comment.