Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/pipes/llm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ to perform various information extraction tasks.
| Component | Description |
|----------------------------|-----------------------------------------------------------|
| `eds.llm_markup_extractor` | Extract structured information using LLMs through markup. |
| `eds.llm_span_qualifier` | Predict attributes of spans using LLMs. |

<!-- --8<-- [end:components] -->
8 changes: 8 additions & 0 deletions docs/pipes/llm/llm-span-qualifier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# LLM Span Qualifier {: #edsnlp.pipes.llm.llm_span_qualifier.factory.create_component }

::: edsnlp.pipes.llm.llm_span_qualifier.factory.create_component
options:
heading_level: 3
show_bases: false
show_source: false
only_class_level: true
3 changes: 2 additions & 1 deletion edsnlp/pipes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@
from .trainable.embeddings.text_cnn.factory import create_component as text_cnn
from .misc.split import Split as split
from .misc.explode import Explode as explode
from .llm.llm_markup_extractor import LlmMarkupExtractor as llm_markup_extractor
from .llm.llm_markup_extractor.factory import create_component as llm_markup_extractor
from .llm.llm_span_qualifier.factory import create_component as llm_span_qualifier
1 change: 1 addition & 0 deletions edsnlp/pipes/llm/llm_span_qualifier/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .llm_span_qualifier import LlmSpanQualifier
8 changes: 8 additions & 0 deletions edsnlp/pipes/llm/llm_span_qualifier/factory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from edsnlp import registry

from .llm_span_qualifier import LlmSpanQualifier

create_component = registry.factory.register(
"eds.llm_span_qualifier",
assigns=["doc.ents", "doc.spans"],
)(LlmSpanQualifier)
Loading
Loading