Skip to content

Py3.7 problem with AP demo #356

@colinallen

Description

@colinallen

User reports a problem with prep phase of demo

$ topicexplorer demo
Downloading demo-data/ap.tgz
100% [......................................................] 2925653 / 2925653
Parsing ap/ap.txt
Extracting documents to ap folder
Building corpus from ap with corpus_from_files function
100%|#########################################################################|
Saving corpus as /Users/<userdir>/Desktop/Projects/NLP/topicexplorer/models/ap.npz
Writing configuration file ap.ini
Traceback (most recent call last):
  File "/Users/<userdir>//anaconda3/bin/topicexplorer", line 10, in <module>
    sys.exit(main())
  File "/Users/<userdir>//Desktop/Projects/NLP/topicexplorer/topicexplorer/__main__.py", line 261, in main
    benchmark(demo.main)(args)
  File "/Users/<userdir>//Desktop/Projects/NLP/topicexplorer/topicexplorer/demo.py", line 86, in main
    prep.main(args)
  File "/Users/<userdir>//Desktop/Projects/NLP/topicexplorer/topicexplorer/prep.py", line 466, in main
    c = Corpus.load(args.corpus_path)
  File "/Users/<userdir>//anaconda3/lib/python3.7/site-packages/vsm/corpus/base.py", line 646, in load
    return Corpus._serial_load(file, load_corpus=load_corpus)
  File "/Users/<userdir>//anaconda3/lib/python3.7/site-packages/vsm/corpus/base.py", line 711, in _serial_load
    c.words = arrays_in['words']
  File "/Users/<userdir>//anaconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 262, in __getitem__
    pickle_kwargs=self.pickle_kwargs)
  File "/Users/katelynmorrison/anaconda3/lib/python3.7/site-packages/numpy/lib/format.py", line 696, in read_array
    raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

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