본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트14k · #11149

extract

하는 일

이 스킬은 파일이나 텍스트 조각에 대해 전체 추출 파이프라인을 실행합니다. 명명된 개체, 관계, 사건, 간단한 주어-서술어-목적어 사실을 찾습니다. 글에서 구조화된 사실을 얻고 싶은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓문서가 있고 그 안의 이름, 관계, 사건을 표로 정리하고 싶을 때.
  • ✓사실을 뽑기 전에 대명사와 별칭을 먼저 연결하고 싶을 때.
  • ✓추출된 결과에 품질 경고가 있는지 검사하고 싶을 때.

스킬 링크

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/extract/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/extract/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 계약서 파일에서 사람, 회사, 주요 사건을 추출하고, 품질 경고가 있으면 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 텍스트를 읽고 개체와 관계를 찾으며, 대명사가 어떤 이름을 가리키는지 알아냅니다. 그다음 주어-서술어-목적어 사실을 만들고 검증 검사를 실행합니다. 결과는 표로 돌아오며, 경고는 함께 표시됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

/semantica:extract

Run the full extraction pipeline. Usage: /semantica:extract [file_path | "inline text"]

$ARGUMENTS = file path, inline text in quotes, or blank (uses active editor file).


Steps

1. Resolve the source.

  • If $ARGUMENTS is a readable file path → text = open(path).read()
  • If it's quoted inline text → use directly
  • If blank → use the active editor file

2. Clear the result cache to prevent cross-invocation pollution:

from semantica.semantic_extract.cache import extraction_cache
extraction_cache.clear()

3. Run the full pipeline:

from semantica.semantic_extract import (
    NamedEntityRecognizer,
    RelationExtractor,
    EventDetector,
    CoreferenceResolver,
    TripletExtractor,
    ExtractionValidator,
)

# Named Entity Recognition
ner = NamedEntityRecognizer()
entities = ner.extract(text)

# Relation Extraction
rel = RelationExtractor()
relations = rel.extract(text)

# Event Detection
evt = EventDetector()
events = evt.extract(text)

# Coreference Resolution — resolve pronouns/aliases before extraction
coref = CoreferenceResolver()
resolved_text = coref.resolve(text)

# Triplet Extraction (subject–predicate–object)
triplet = TripletExtractor()
triplets = triplet.extract(resolved_text)

# Validate quality
validator = ExtractionValidator()
issues = validator.validate(entities, relations)

4. Report validator warnings above results:

⚠ ExtractionValidator: <warning message>

5. Return results as Markdown tables:

Entities (N total)

Label Type Confidence Span

Relations (M total)

Source Relation Type Target Confidence

Events (K total)

Label Type Participants Confidence

Triplets (J total)

Subject Predicate Object Confidence

6. Summary line:

Extracted: N entities, M relations, K events, J triplets — from <source>

For large files (>50KB), process in chunks and show a progress indicator. Highlight any entities appearing in the context graph already (ContextGraph.has_node(label)) with [in graph] tag.

자주 묻는 질문

공지칭 해결(coreference resolution)이란 무엇인가요?

‘그녀’나 ‘그 회사’ 같은 단어가 어떤 대상을 가리키는지 알아내서, 사실이 올바른 대상에 연결되도록 하는 것입니다.

어떤 결과가 나오나요?

개체, 관계, 사건, 트리플의 표와 검증기가 보내는 경고입니다.

지금 편집 중인 파일에서도 실행할 수 있나요?

네. 파일 이름을 지정하지 않으면 편집기에서 열린 파일을 사용할 수 있습니다.

상세 정보

작성자의 원본 설명

Run the full Semantica semantic extraction pipeline on a file or selected text — NER, relations, events, coreference resolution, triplets, and validation. Clears result cache before each run. Returns Markdown tables with entity/relation/event/triplet results and inline validator warnings.

repo: semantica-agi/semantica

인기도

GitHub 스타
14k
순위
#11149
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬