Skip to content
Snippets Groups Projects

New entity types handling

Merged Yoann Schneider requested to merge entity-types into master
All threads resolved!
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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
@@ -101,7+101,7 @@
"CreateEntity",
body={
"name": name,
"type": entity_type_id,
"type_id": entity_type_id,
"metas": metas,
"validated": validated,
"corpus": self.corpus_id,
Loading