Skip to content

build_topic_model_browser.py #12

Description

@idrissbachali

i want to run this app build_topic_model_browser.py ,i got this unexpected error ,i noticed two errors "AttributeError: 'str' object has no attribute 'items'" and "TypeError: unhashable type: 'dict'"

Traceback (most recent call last):
File "C:\Users\IBL\AppData\Local\Programs\Python\Python37-32\lib\site-packages\networkx\classes\function.py", line 649, in set_node_attributes
for n, v in values.items():
AttributeError: 'str' object has no attribute 'items'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "build_topic_model_browser.py", line 68, in
utils.save_json_object(corpus.collaboration_network(topic_associations[topic_id]),
File "C:\Users\IBL\Desktop\Topic modelling\TOM\tom_lib\structure\corpus.py", line 153, in collaboration_network
nx.set_node_attributes(nx_graph, 'betweenness', bb)
File "C:\Users\IBL\AppData\Local\Programs\Python\Python37-32\lib\site-packages\networkx\classes\function.py", line 656, in set_node_attributes
G.nodes[n][name] = values
TypeError: unhashable type: 'dict'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions