Code Monkey home page Code Monkey logo

nlpmodel's People

Contributors

makeplanetoheaven avatar stevenlai1994 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nlpmodel's Issues

How do I get pinyin for other dataset.

I see you using open source dataset and label pinyin for every dataset, but we all know label pinyin has muti-tone issue. So how can I reduce error when labeling pinyin for other sentences.

TypeError: 'NoneType' object is not subscriptable

image
您好,在v1 版本 加载模型时:cnn卷基层结束,在进入fsmn 报错TypeError: 'NoneType' object is not subscriptable

初步定为在CFSMN类的 call方法中的tf.tensordot(inputs, self._V, axes=1) + self._bias_V函数,能力有限没能解决,还请指教

报错位置:
image

TransformerDSSM中代码sample_nums = self.batch_size * gpu_num是不是写错了?

如题,经过代码分析,默认情况下
self.batch_size =self.q_size;
gpu_num=1;
sample_nums = self.batch_size * gpu_num;

而遍历循环代码for j in range(self.q_size // sample_nums)中:
self.q_size // sample_nums 不就等价于1//gpu_num么?那这个循环j始终为range(1)啊,

求解是不是应该改成 sample_nums = self.batch_size // gpu_num?

附上代码片段:
‘‘’
“#” 开始迭代,使用Adam优化的随机梯度下降法,并将结果输出到日志文件
print('training------')
index_list = [i for i in range(self.q_size)]
sample_nums = self.batch_size * gpu_num
for i in range(self.epoch_steps):
total_loss = 0
total_accuracy = 0
for j in range(self.q_size // sample_nums): # 默认情况:batch_size == q_size
if self.is_sample:
sample_list = simple_sampling(index_list, sample_nums)
q_set = []
t_set = []
q_actual_length = []
t_actual_length = []
for index in sample_list:
q_set.append(self.q_set[index])
t_set.append(self.t_set[index])
q_actual_length.append(self.q_actual_length[index])
t_actual_length.append(self.t_actual_length[index])
‘’’

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.