Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update documentation

davidmezzetti3e2bf4847879
diff --git a/docs/pipeline/text/entity.md b/docs/pipeline/text/entity.md
index 5b1ecd95..d6c56141 100644
--- a/docs/pipeline/text/entity.md
+++ b/docs/pipeline/text/entity.md
@@ -3,7 +3,7 @@
![pipeline](../../images/pipeline.png#only-light)
![pipeline](../../images/pipeline-dark.png#only-dark)
-The entity extraction pipeline applies a token classifier to text and extracts known entity/label combinations.
+The entity extraction pipeline applies a token classifier to text and extracts entity/label combinations.
## Example
diff --git a/src/python/txtai/pipeline/text/entity.py b/src/python/txtai/pipeline/text/entity.py
index ede63185..56c3deaf 100644
--- a/src/python/txtai/pipeline/text/entity.py
+++ b/src/python/txtai/pipeline/text/entity.py
@@ -7,7 +7,7 @@ from ..hfpipeline import HFPipeline
class Entity(HFPipeline):
"""
- Applies a token classifier to text. Extracts known entity/label combinations.
+ Applies a token classifier to text and extracts entity/label combinations.
"""
def __init__(self, path=None, quantize=False, gpu=True, model=None):
@@ -15,7 +15,7 @@ class Entity(HFPipeline):
def __call__(self, text, labels=None, aggregate="simple", flatten=None, join=False, workers=0):
"""
- Applies a token classifier to text.
+ Applies a token classifier to text and extracts entity/label combinations.
Args:
text: text|list