💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update documentation
davidmezzetti3e2bf4847879
diff --git a/docs/pipeline/text/entity.md b/docs/pipeline/text/entity.mdindex 5b1ecd95..d6c56141 100644--- a/docs/pipeline/text/entity.md+++ b/docs/pipeline/text/entity.md@@ -3,7 +3,7 @@-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.## Examplediff --git a/src/python/txtai/pipeline/text/entity.py b/src/python/txtai/pipeline/text/entity.pyindex 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 HFPipelineclass 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