Skip to content

ppln.py broken #259

@glicerico

Description

@glicerico

After PR #258, the "mini-pipeline" ppln.py that does grammar-learning and parse-evaluation stopped working in my system.
I get the following error:

Grammar Learner + Tester ppln v.0.0.1 started 2019-10-08 16:45:03 UTC | Python v.3.6.6

Traceback (most recent call last):
  File "../pipeline/ppln.py", line 107, in <module>
    main(sys.argv[1:])
  File "../pipeline/ppln.py", line 72, in main
    rules, re = learn(**kwargs)
  File "/home/andres/MyOpenCogSources/language-learning/src/grammar_learner/learner.py", line 139, in learn
    categories = add_disjuncts(categories, links, **kwargs)
  File "/home/andres/MyOpenCogSources/language-learning/src/grammar_learner/grammar_inducer.py", line 101, in add_disjuncts
    word_counts = { w: c for w, c in dict(zip(wdf["word"].to_list(), wdf["count"].to_list())).items() }
  File "/home/andres/src/miniconda3/envs/ull/lib/python3.6/site-packages/pandas/core/generic.py", line 4376, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'to_list'

@alexei-gl If you can help, it'd be great, if not please let me know and I'll return to a previous commit to have it working.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions