Skip to content

Commit

Permalink
Merge pull request #46 from TUK-DP/develop
Browse files Browse the repository at this point in the history
deploy 0.5
  • Loading branch information
Leewonchan14 authored Mar 7, 2024
2 parents d508a64 + 54fd642 commit b5b9acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diary/textrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(self, content):
# 명사 추출
nouns = SentenceTokenizer.get_nouns(self.sentences)

if nouns:
if nouns and nouns != ['']:
# 가중치 그래프 객체 생성
matrix = GraphMatrix(nouns)
# 문장별 가중치 그래프 [문장수, 문장수], {index: 문장} 사전
Expand Down
2 changes: 1 addition & 1 deletion diary/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def post(self, request):

# 키워드 추출
memory = TextRank(content=content)

if memory is None:
return ApiResponse.on_success(
result=SentenceSimpleSerializer(newSentence).data,
Expand Down

0 comments on commit b5b9acd

Please sign in to comment.