Giter Site home page Giter Site logo

Comments (3)

Sleepychord avatar Sleepychord commented on August 28, 2024

Hi, I am sorry for the typos. I have fixed it.

from cogqa.

JerryZeyu avatar JerryZeyu commented on August 28, 2024

When I run the command: python cogqa.py --data_file='hotpot_dev_fullwiki_v1_merge.json'. But during the answering, it shows some wrong: ValueError: attempt to get argmin of an empty sequence.
Start Training... on 1 GPUs
17%|██████▊ | 1294/7405 [03:41<13:29, 7.55it/s]Traceback (most recent call last):
File "cogqa.py", line 244, in
fire.Fire(main)
File "/home/zeyuzhang/anaconda3/lib/python3.7/site-packages/fire/core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "/home/zeyuzhang/anaconda3/lib/python3.7/site-packages/fire/core.py", line 366, in _Fire
component, remaining_args)
File "/home/zeyuzhang/anaconda3/lib/python3.7/site-packages/fire/core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "cogqa.py", line 234, in main
gold, ans, graph_ret, ans_nodes = cognitive_graph_propagate(tokenizer, data, model1, model2, device, setting = setting, max_new_nodes=max_new_nodes)
File "cogqa.py", line 147, in cognitive_graph_propagate
l, r = find_start_end_before_tokenized(orig_text, [pred_slice])[0]
File "/home/zeyuzhang/Downloads/CogQA-master/utils.py", line 238, in find_start_end_before_tokenized
result = fuzzy_find([span], orig_text)
File "/home/zeyuzhang/Downloads/CogQA-master/utils.py", line 107, in fuzzy_find
r, score = dp(item, sentence)
File "/home/zeyuzhang/Downloads/CogQA-master/utils.py", line 86, in dp
r = np.argmin(f[len(a) - 1])
File "/home/zeyuzhang/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 1172, in argmin
return _wrapfunc(a, 'argmin', axis=axis, out=out)
File "/home/zeyuzhang/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: attempt to get argmin of an empty sequence
Can you tell me how to solve these? Thank you very much.

from cogqa.

qibinc avatar qibinc commented on August 28, 2024

@JerryZeyu unzip improved_retrieval.zip

from cogqa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.