Git Product home page Git Product logo

multitq's Introduction

Hi there 👋 for Ziyang Chen

  • 🌱 I’m currently a Ph.D student in NUDT.
  • 🔭 I’m currently conducting research on LLM and KG.
  • 👯 I’m looking for academic exchange and collaboration.
  • 📫 Email: [email protected]

Ziyang Chen's GitHub stats

multitq's People

Contributors

czy1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

multitq's Issues

FileNotFoundError

Hello, I would like to ask why there is an error that the file cannot be found, as shown in the picture. Thank you for your answer.

help

image
image
找不到'entity_positions'、Sequence和SequenceTagger

The freeze_support() ERROR

Thanks for your greate work!
I completely follow with your step.But when I run python ./train_qa_model.py --model multiqa, the console reoport ERROR like this:

Creating new log file
Starting training
  0%|          | 0/6044 [00:00<?, ?batches/s]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 125, in _main
    prepare(preparation_data)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "C:\Users\L\anaconda3\envs\qtbb\lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Users\L\anaconda3\envs\qtbb\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Users\L\anaconda3\envs\qtbb\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\MultiTQ\MultiQA\train_qa_model.py", line 212, in <module>
    train(qa_model, dataset, valid_dataset, args, result_filename=result_filename)
  File "D:\MultiTQ\MultiQA\utils.py", line 505, in train
    for i_batch, a in enumerate(loader):
  File "C:\Users\L\anaconda3\envs\qtbb\lib\site-packages\tqdm\std.py", line 1178, in __iter__
    for obj in iterable:
  File "C:\Users\L\anaconda3\envs\qtbb\lib\site-packages\torch\utils\data\dataloader.py", line 438, in __iter__
    return self._get_iterator()
  File "C:\Users\L\anaconda3\envs\qtbb\lib\site-packages\torch\utils\data\dataloader.py", line 386, in _get_iterator
    return _MultiProcessingDataLoaderIter(self)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\site-packages\torch\utils\data\dataloader.py", line 1039, in __init__
    w.start()
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\process.py", line 121, in start
    self._popen = self._Popen(self)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\context.py", line 327, in _Popen
    return Popen(process_obj)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__
    prep_data = spawn.get_preparation_data(process_obj._name)
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 154, in get_preparation_data
    _check_not_importing_main()
  File "C:\Users\L\anaconda3\envs\qtbb\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main
    raise RuntimeError('''
RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.
x
Process finished with exit code -1

Before this error,I encounter The gbk encoding error, but I solved this error by adding the "encoding=UTF-8" in open() function. I think it's not the main reason cause the RuntimeError(but, the origin code literally produce this problem).

So, how do i resolve this RuntimeError?, Does it's caused by different dependencies version?

Thanks for your answering

Some questions about data.

Hello, thanks for your great work, could you tell me what are files under data/kg/tkbc_processed_data/ used for?

Question about entity retrieval

The Figure 4 in paper described question process.I regard the entity retrieval as obtaining the entity by ner tools from question text.But there is no entity named "Ethiopia" in the question text.It seems like an answer, and I check the code in the coressponding part of question process, It may valid my thought.So, how do i understand this part of question process in paper?
image

image

How to represent the day timestamps that no corresponding **d_i** representation in the TKG embedding for day timestamps di?

In the paper related to this repository, the 4.2 Multi-Granularity Time Aggregation section described generate the Multi-Granularity time.
that says

we first extract all contained daytimestamps d1, d2, ..., dN and their TKG embeddings td1, td2, ..., tdN

image
How to transform the daytimestamps into TKG embeddings?
the paper method is to extract them(TKG embeddings) from TKG,But if no corresponding d_i representation in the TKG embedding for day timestamps di,what will the paper method do?Will the KGE model generate corresponding d_i representation for day timestamps di?

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.