Giter Site home page Giter Site logo

medical-dialogue-system's Issues

数据来源

你好我想请问医患的数据是从网络上爬取的,还是真实的医院中的医患对话场景?因为我看到多轮中存在一些答非所问和错误的情况,期望得到您的回复,谢谢。

data link

hello, I can not open the link of train_data.json. Could you please update it?

some details

Hello,
it seems there are some problems?
in bertGPT/generate.py, the past_length should start from 0 following the training settings.

length = 1
# decoding loop
for i in range(100):
    mask = F.pad(mask, (0, 1), "constant", 1.0)
    logits, past = decoder(prev_pred, mask, past=past, past_length=length)
    logits = logits.squeeze(1)
    logits = top_k_logits(logits, k=top_k)
    probs = F.softmax(logits, dim=-1)
    prev_pred = torch.multinomial(probs, num_samples=1)
    sentence.append(prev_pred)
    if prev_pred[0][0] == 102:
        break
    length += 1

in gpt2/gpt2_test_mmi.py, the sequence curr_input_tensors should be truncated from the front.

curr_input_tensors = curr_input_tensors[:, 0:300]   ×
curr_input_tensors = curr_input_tensors[:, -300:]   √

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.