3.5만 에피소드 기반 표절·AI·판례 분석 파이프라인 구현
This commit is contained in:
1 parent
4f6898d0b2
commit
ce50e89089
32 files changed
+4505
-69
No files matched your search
@@ -13,11 +13,23 @@ class Settings(BaseSettings):
|
||||
log_level: str = "info" # debug / info / warning / error
|
||||
reload: bool = False # 개발용 자동 재시작
|
||||
root_path: str = "" # 리버스 프록시 sub-path (예: /plagiarism)
|
||||
api_key: str = "" # 설정 시 /v1/health 외 X-API-Key 필수
|
||||
|
||||
engine_version: str = "o2o-plagiarism-2.0.0-pdf-v1.2"
|
||||
reference_corpus_dir: str = "./data/reference"
|
||||
taxonomy_dir: str = "./data/taxonomy"
|
||||
autobiography_patterns_path: str = "./data/autobiography/common_patterns.txt"
|
||||
corpus_db_path: str = "./data/runtime/corpus.sqlite3"
|
||||
persistent_index_dir: str = "./data/runtime/index"
|
||||
use_persistent_index: bool = False
|
||||
persistent_similarity_threshold: float = 0.65
|
||||
persistent_min_exact_span: int = 80
|
||||
persistent_min_coverage: float = 0.30
|
||||
persistent_rerank_top_k: int = 20
|
||||
precedents_path: str = "./data/precedents/precedents.jsonl"
|
||||
ai_detector_model_path: str = "./data/models/ai_detector.joblib"
|
||||
ai_detector_allow_heuristic: bool = False
|
||||
ai_detector_use_pos: bool = True
|
||||
|
||||
# PDF VII-4 권장: 정밀도 우선 보수적 임계값
|
||||
similarity_threshold: float = 0.85
|
||||
@@ -61,6 +73,18 @@ class Settings(BaseSettings):
|
||||
def taxonomy_path(self) -> Path:
|
||||
return Path(self.taxonomy_dir).resolve()
|
||||
|
||||
@property
|
||||
def corpus_db(self) -> Path:
|
||||
return Path(self.corpus_db_path).resolve()
|
||||
|
||||
@property
|
||||
def persistent_index_path(self) -> Path:
|
||||
return Path(self.persistent_index_dir).resolve()
|
||||
|
||||
@property
|
||||
def precedent_path(self) -> Path:
|
||||
return Path(self.precedents_path).resolve()
|
||||
|
||||
@property
|
||||
def has_openai(self) -> bool:
|
||||
return bool(self.openai_api_key.strip())
|
||||
|
||||
Reference in new issue
Block a user