114 lines
3.1 KiB
Python
114 lines
3.1 KiB
Python
#!/usr/bin/env python3
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from paperdb_config import AIConfig
|
|
from paperdb_config import Config
|
|
from paperdb_config import DomainConfig
|
|
from paperdb_config import PathConfig
|
|
from paperdb_config import ProcessingConfig
|
|
from paperdb_config import RemoteConfig
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parent
|
|
|
|
CONFIG = Config(
|
|
path=PathConfig(
|
|
project_root=ROOT,
|
|
pdf_root=(
|
|
Path.home()
|
|
/ "G_drive"
|
|
/ "ガラス固化体データベース"
|
|
),
|
|
database=ROOT / "papers.db",
|
|
publish_database=ROOT / "papers.publish.db",
|
|
tmp_dir=ROOT / "tmp",
|
|
text_dir=ROOT / "tmp" / "text",
|
|
log_dir=ROOT / "logs",
|
|
papers_org=ROOT / "papers.org",
|
|
),
|
|
remote=RemoteConfig(
|
|
host="wglass@amorphous",
|
|
database_dir="/home/wglass/public_html/db",
|
|
pdf_dir="/home/wglass/public_html/pdf",
|
|
),
|
|
ai=AIConfig(
|
|
backend="claude",
|
|
claude_permission_mode="dontAsk",
|
|
claude_allowed_tools=(
|
|
"Read",
|
|
"Glob",
|
|
"Grep",
|
|
"Write",
|
|
"Edit",
|
|
"WebSearch",
|
|
"WebFetch",
|
|
),
|
|
codex_model=None,
|
|
codex_sandbox="workspace-write",
|
|
codex_full_auto=True,
|
|
),
|
|
processing=ProcessingConfig(
|
|
scan_directories=(
|
|
"千葉大_大窪",
|
|
"JAEA_三ツ井",
|
|
"RWMC_稲垣",
|
|
),
|
|
ignore_directories=("old", "tmp", "trash"),
|
|
max_papers=1,
|
|
initial_pages=2,
|
|
fallback_pages=5,
|
|
min_text_length=1500,
|
|
update_database=True,
|
|
validate_database=True,
|
|
export_org=True,
|
|
backup_database=True,
|
|
),
|
|
domain=DomainConfig(
|
|
name="ガラス固化体",
|
|
description=(
|
|
"高レベル放射性廃棄物ガラス、廃棄物ガラス、"
|
|
"ホウケイ酸塩ガラス、耐久性、変質、放射線影響、"
|
|
"核種保持に関する論文"
|
|
),
|
|
categories=(
|
|
"Review",
|
|
"Glass structure",
|
|
"Crystallization",
|
|
"Melting",
|
|
"Corrosion",
|
|
"Durability",
|
|
"Alteration layer",
|
|
"Radiation effects",
|
|
"Simulation",
|
|
"Molecular dynamics",
|
|
"Machine learning",
|
|
"NMR",
|
|
"Raman",
|
|
"XAFS",
|
|
"Diffraction",
|
|
"Actinides",
|
|
"Fission products",
|
|
"Other",
|
|
),
|
|
default_category="Other",
|
|
summary_length_ja="100〜200字程度",
|
|
summary_focus=(
|
|
"研究目的",
|
|
"使用した実験または計算手法",
|
|
"主な結果",
|
|
"新規性",
|
|
"ガラス固化体研究との関連",
|
|
),
|
|
relevance_criteria=(
|
|
"無関係",
|
|
"わずかに関連",
|
|
"周辺分野",
|
|
"関連するガラス科学",
|
|
"ガラス固化体研究へ直接応用可能",
|
|
"高レベル放射性廃棄物ガラスそのもの",
|
|
),
|
|
),
|
|
)
|