code: from llama_index.core import SimpleDirectoryReader
  from llama_index.core.node_parser import SentenceSplitter
  from llama_index.extractors.entity import EntityExtractor
  
  reader = SimpleDirectoryReader('files')
  documents = reader.load_data()
  parser = SentenceSplitter(include_prev_next_rel=True)
  nodes = parser.get_nodes_from_documents(documents)
  
  entity_extractor = EntityExtractor(
      label_entities = True,
      device = "cpu"
  )
  metadata_list = entity_extractor.extract(nodes)
  
  print(metadata_list)
  
apis: llama_index.core.node_parser.SentenceSplitter llama_index.core.SimpleDirectoryReader llama_index.extractors.entity.EntityExtractor
extract_api: [((177, 207), 'llama_index.core.SimpleDirectoryReader', 'SimpleDirectoryReader', (['"""files"""'], {}), "('files')\n", (198, 207), False, 'from llama_index.core import SimpleDirectoryReader\n'), ((248, 292), 'llama_index.core.node_parser.SentenceSplitter', 'SentenceSplitter', ([], {'include_prev_next_rel': '(True)'}), '(include_prev_next_rel=True)\n', (264, 292), False, 'from llama_index.core.node_parser import SentenceSplitter\n'), ((364, 414), 'llama_index.extractors.entity.EntityExtractor', 'EntityExtractor', ([], {'label_entities': '(True)', 'device': '"""cpu"""'}), "(label_entities=True, device='cpu')\n", (379, 414), False, 'from llama_index.extractors.entity import EntityExtractor\n')]