Merged
Conversation
- main.py, db.py, config.py, routers/home.py에서 불필요한 주석 삭제
- 7가지 및 5가지 감정 상태를 나타내는 상수 LABELS_7, LABELS_5 추가
- 모델 디렉토리 설정을 위한 "model_dir" 필드 추가 및 os.getenv를 활용한 환경변수 기능 적용 - API 제목을 "MovieMood - KoBERT Emotion API"로 수정
- 감정 예측을 위한 POST 및 GET 엔드포인트 생성 - 텍스트 기반 감정 확률 계산 및 MongoDB 저장 로직 구현 - 예측 기록 조회 기능 추가
- KoBERT 모델 기반 텍스트 감정 예측 함수 predict_emotions 구현 - 토크나이저 및 모델 로드 로직 포함
- 감정 분석 결과 및 텍스트 데이터를 나타내는 TextItem, Prediction 모델 추가
- predict 라우터를 FastAPI 애플리케이션에 등록 - uvicorn import 위치 조정
- LABELS_7 및 LABELS_5의 "joy"를 "happiness"로 변경 - LABELS_6 상수 추가
- MODEL_DIR 기본값을 "models/0712_kobert_5_emotion_model"로 변경
- LABELS_6과 LABELS_5의 항목 순서 재정렬 - 오타 "LABLES_5"를 "LABELS_5"로 수정
- 추후 배포를 위해 대용량 파일 정리
- 사용되지 않는 7가지 및 6가지 감정 분석 모델 파일 제거 - 추후 배포를 위한 대용량 파일 정리
- LABELS_7 및 LABELS_6 상수 제거
[REFAC] 대용량 파일 정리
- 클래스별 예측 확률 평균 계산 함수 추가 - 배치 예측 및 문장 분리 기반 감정 예측 로직 추가 - 다양한 감정 예측 함수 제공 (split_avg, overall_avg, full)
- 새로운 엔드포인트 (/full, /split_avg, /overall_avg) 추가 - 감정 예측 로직 다양화 (full, split_avg, overall_avg) - 예측 결과를 MongoDB에 저장하도록 수정
- 예측 결과를 소수점에서 백분율 형식으로 변환하는 `_format_percent` 함수 추가 - split_avg, overall_avg, full 예측 함수에 변환 로직 적용
- history는 commment_id와 함께 전달 필요함. - 따라서 Spring server에서 post시 모델 결과, comment_id 등과 함께 mongoDB에 저장하는 로직으로 변경하기 위해 삭제
Feat/#10 모델 입력값 문장 단위로 분리 및 토크나이저 설정 수정
- Conda 환경 설정 및 패키지 설치 방법 상세히 기술 - KoBERT 설치 코드 예시 포함
Refac/#12 가상 환경 설치 및 필수 패키지 설치 가이드 제공
- 불필요한 파일 및 디렉터리 대상으로 gitignore 규칙 정의 - 가상환경, 로그, IDE 설정 파일 제외 처리
- Conda 설치 가이드 섹션 개선 및 내용 재정렬 - venv 환경 설치 방법 추가하여 가이드 확장
- FastAPI 및 필요한 의존성 패키지명 포함 - KoBERT 토크나이저 GitHub 경로를 통한 설치 정보 포함
- LABELS_6 및 LABELS_5에서 "happiness"를 "joy"로 수정 및 라벨 순서 정리
Refac/#14 venv 가상 환경 지원 테스트 완료
Refac/#16 감정 라벨 수정 완료
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.