Skip to content

Commit

Permalink
Feat : 키워드 추출 프로세스
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed May 23, 2024
1 parent be8e204 commit 6b3c2c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ public class CulturalEvent extends BaseEntity {
@Column(columnDefinition = "TEXT")
public String information;

@Column(columnDefinition = "TEXT")
public String topic;

@Column(columnDefinition = "TEXT")
public String sentiment;

@ManyToOne(fetch = FetchType.LAZY)
public CulturalEventCategory culturalEventCategory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import lombok.RequiredArgsConstructor;
import org.json.JSONArray;
import org.json.JSONObject;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
Expand All @@ -32,8 +29,6 @@
import project.backend.domain.ticketingsite.entity.TicketingSite;
import project.backend.domain.ticketingsite.service.TicketingSiteService;

import javax.swing.text.html.Option;
import java.io.IOException;
import java.util.*;

@Service
Expand Down Expand Up @@ -176,6 +171,15 @@ public CulturalEventCreateDto getDetailCulturalEventFromGoodsCode(String goodsCo
culturalEventCreateDto.setThumbnailImageUrl("https:" + culturalEventCreateDto.getThumbnailImageUrl());
return culturalEventCreateDto;
}

/**
* 기대평 기반 감정 저장
*/
public void setKeywordSentiment(String goodsCode) {
// GET 하는 내용

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,5 @@ public void createCulturalEventEvaluations(String goodsCode, CulturalEvent cultu
}

List<CulturalEventEvaluation> culturalEventEvaluationList = culturalEventEvaluationRepository.saveAll(evaluations);
// evaluations.forEach(evaluation -> evaluation.setCulturalEvent(culturalEvent));
}
}

0 comments on commit 6b3c2c0

Please sign in to comment.