Skip to main content
After partitioning, you can have Unstructured generate a list of recognized entities and their types (such as the names of organizations, products, and people) in the content, through a process known as named entity recognition (NER). You can also have Unstructured generate a list of relationships between the entities that are recognized. This NER is done by using models offered through various model providers. Here is an example of a list of recognized entities and their entity types, along with a list of relationships between those entities and their relationship types, using GPT-4o. Note specifically the entities field that is added to the metadata field.
Here is another example of some of the entities, their entity types, and relationships that are recognized for a given paragraph of text. This information is generated by GPT-4o by OpenAI: Named entity recognition for information in a paragraph of text By default, the following entity types are supported for NER:
  • PERSON
  • ORGANIZATION
  • LOCATION
  • DATE
  • TIME
  • EVENT
  • MONEY
  • PERCENT
  • FACILITY
  • PRODUCT
  • ROLE
  • DOCUMENT
  • DATASET
By default, the following entity relationships are supported for NER:
  • PERSON - ORGANIZATION: works_for, affiliated_with, founded
  • PERSON - LOCATION: born_in, lives_in, traveled_to
  • ORGANIZATION - LOCATION: based_in, has_office_in
  • Entity - DATE: occurred_on, founded_on, died_on, published_in
  • PERSON - PERSON: married_to, parent_of, colleague_of
  • PRODUCT - ORGANIZATION: developed_by, owned_by
  • EVENT - LOCATION: held_in, occurred_in
  • Entity - ROLE: has_title, acts_as, has_role
  • DATASET - PERSON: mentions
  • DATASET - DOCUMENT: located_in
  • PERSON - DATASET: published
  • DOCUMENT - DOCUMENT: referenced_in, contains
  • DOCUMENT - DATE: dated
  • PERSON - DOCUMENT: published
You can add, rename, or delete items in this list of default entity types and default entity relationship types. You can also add any clarifying instructions to the prompt that is used to run NER. To do this, see the next section.

Generate a list of entities and their relationships

To have Unstructured generate list of entities and their relationships, do the following: