Skip to content

AttributeError: 'DataPack' object has no attribute 'to_string' #671

@samunaai

Description

@samunaai

Issue
When I try to run the code for [cord_indexer],, while following the Forte 3-part Tutorial (Part 2) I run the code python examples/pipeline/indexer/cordindexer.py --data-dir ../cord_data_2021-04-13/document_parses/pdf_json

But I get an error AttributeError: 'DataPack' object has no attribute 'to_string'
What does this mean? Perhaps I am using the incorrect forte version?

Code versions

  • forte version '0.1.2'
  • python 3.6
  • python elasticsearch client version '7.11.0'
  • elasticsearch server version '7.12.2' (though this may not be the source of the error?)

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions