@@ -195,22 +195,22 @@ def extraction(
195195
196196 def ontology (
197197 self ,
198- resolve_entities : bool = False ,
198+ resolve_entities : bool = True ,
199199 optimize_relations : bool = True ,
200200 predict_missing_relations : bool = False ,
201- relation_threshold : float = 0.5 ,
201+ relation_threshold : float = 0.6 ,
202202 kg_output_format : str = "custom" ,
203203 ** kwargs : Any ,
204204 ) -> "PipelineBuilder" :
205205 """Add Relation Extraction service for knowledge graph construction.
206206
207207 Args:
208- resolve_entities: Merge duplicate entities
209- optimize_relations: Filter redundant relations
210- predict_missing_relations: Predict implicit relations
211- relation_threshold: Confidence threshold for relations
212- kg_output_format: Output format ("custom", "property_graph", "rdf")
213- **kwargs: Additional configuration options
208+ resolve_entities: Merge duplicate entities using hybrid similarity + embeddings.
209+ optimize_relations: Refine relation labels for better semantic accuracy.
210+ predict_missing_relations: Predict implicit relations via heuristics + embeddings.
211+ relation_threshold: Confidence threshold for relations (0.0-1.0).
212+ kg_output_format: Output format ("custom", "property_graph", "rdf").
213+ **kwargs: Additional configuration options.
214214
215215 Returns:
216216 Self for method chaining
0 commit comments