Find answers from the community

Updated 8 months ago

can we pass llms as the NER meta data

can we pass llms as the NER meta data extractor
d
2 comments
also training to pass an embedding model through
processor = PIINodePostprocessor(model=Isotonic/distilbert_finetuned_ai4privacy)
but its not saying no modle passed for llm it works
also trying use a huggingface model 1 from llama_index.core.schema import NodeWithScore
----> 2 new_nodes = processor.postprocess_nodes([NodeWithScore(node=nodes)])

/usr/local/lib/python3.10/dist-packages/pydantic/v1/main.py in init(pydantic_self, **data)
339 values, fields_set, validation_error = validate_model(pydantic_self.class, data)
340 if validation_error:
--> 341 raise validation_error
342 try:
343 object_setattr(pydantic_self, 'dict', values)

ValidationError: 1 validation error for NodeWithScore
node
Add a reply
Sign up and join the conversation on Discord