Giter Club home page Giter Club logo

Comments (7)

codgin avatar codgin commented on June 11, 2024 1

同样遇到了原因是[i*batch_size: (i+1)*batch_size]不是int,添加int函数就搞定了

from chinesener.

iboying avatar iboying commented on June 11, 2024 1

data_utils.py line 293:
batch_data.append(self.pad_data(sorted_data[i*batch_size : (i+1)*batch_size]))
=>
batch_data.append(self.pad_data(sorted_data[int(i*batch_size) : int((i+1)*batch_size)]))

from chinesener.

Jason8Kang avatar Jason8Kang commented on June 11, 2024

遇到同样问题

from chinesener.

git-mengmeng avatar git-mengmeng commented on June 11, 2024

是的呢,我也是 把两个false 改为true后,在main.py上面就是这个问题,该怎么解决呢

from chinesener.

zhisifangxiu avatar zhisifangxiu commented on June 11, 2024

你好,请问你们解决了吗

from chinesener.

Chenny0808 avatar Chenny0808 commented on June 11, 2024

老铁,模型输入是不是没有对齐文本?

from chinesener.

wilsonsky18 avatar wilsonsky18 commented on June 11, 2024

remove this line
sorted_data = sorted(data, key=lambda x: len(x[0]))
and check out, wish help

from chinesener.

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.