Skip to content
Snippets Groups Projects

New entity types handling

Merged Yoann Schneider requested to merge entity-types into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -27,7+27,7 @@
Missing ones may be created automatically if needed.
:param entity_types: Entity type names to search.
:param create_missing: Whether the missing types should be created. Defaults to True.
:raises MissingEntityType: When an entity type is missing and cannot create.
"""
# Retrieve entity_type ID
@@ -53,7+53,7 @@
"corpus": self.corpus_id,
},
)["id"]
logger.info(f"Created a new entity type with slug `{entity_type}`.")
logger.info(f"Created a new entity type with name `{entity_type}`.")
def create_entity(
self,
Loading