You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.supervision.police.controller;
|
|
|
|
|
|
|
|
|
|
import com.supervision.common.domain.R;
|
|
|
|
|
import com.supervision.police.service.LongTextService;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Author:longbao
|
|
|
|
|
* @Date:2024/12/10 10:20
|
|
|
|
|
* @Description: 笔录QA对中关于回答的长文本处理
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/answerLongText")
|
|
|
|
|
public class LongTextController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private LongTextService longTextService;
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "笔录长文本三元组提取")
|
|
|
|
|
@GetMapping("/tripletExtraction")
|
|
|
|
|
public R<Object> answerLongTextTripletExtraction(String noteRecordId) {
|
|
|
|
|
return longTextService.qaAnswerLongTextTripletExtractionByNoteRecordId(noteRecordId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|