Feat/#10 모델 입력값 문장 단위로 분리 및 토크나이저 설정 수정#11
Merged
Sangyoon98 merged 4 commits intodevfrom Jul 13, 2025
Merged
Conversation
- 클래스별 예측 확률 평균 계산 함수 추가 - 배치 예측 및 문장 분리 기반 감정 예측 로직 추가 - 다양한 감정 예측 함수 제공 (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에 저장하는 로직으로 변경하기 위해 삭제
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.
📣 Related Issue
📝 Summary
입력값을 문장 단위로 분리하여 분류 결과를 평균값으로 제공하는 기능 추가 및 API 추가
http://0.0.0.0:8000/predict/fullhttp://0.0.0.0:8000/predict/overall_avghttp://0.0.0.0:8000/predict/split_avg토크나이저가 실 사용에 강건하도록 설정 추가
🙏 Question & PR point