Giter Site home page Giter Site logo

关于标注部分的问题 about kcws HOT 7 CLOSED

koth avatar koth commented on August 17, 2024
关于标注部分的问题

from kcws.

Comments (7)

koth avatar koth commented on August 17, 2024 1

你是不是没更新代码呢?

from kcws.

oneapmlj avatar oneapmlj commented on August 17, 2024

是的,我错了,没有更新代码 -!- 那看来我是自己在本地更新了一下您的代码!哈哈

from kcws.

kinghuangdd avatar kinghuangdd commented on August 17, 2024

用python3.6跑报错:
Traceback (most recent call last):
File "kcws/train/train_pos.py", line 348, in
tf.app.run()
File "/home/kinghuang/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "kcws/train/train_pos.py", line 311, in main
FLAGS.char_word2vec_path, FLAGS.num_hidden)
File "kcws/train/train_pos.py", line 80, in init
self.w2v = self.load_w2v(w2vPath, FLAGS.embedding_word_size)
File "kcws/train/train_pos.py", line 205, in load_w2v
line = fp.readline().strip()
File "/home/kinghuang/anaconda3/envs/tensorflow/lib/python3.6/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 4282-4283: invalid continuation byte

用python2.7跑报错:
Traceback (most recent call last):
File "kcws/train/train_pos.py", line 347, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "kcws/train/train_pos.py", line 312, in main
wX, cX, Y = inputs(trainDataPath)
File "kcws/train/train_pos.py", line 290, in inputs
features = tf.transpose(tf.stack(whole[0:FLAGS.max_sentence_len]))
AttributeError: 'module' object has no attribute 'stack'
麻烦问下是不是代码未更新的问题?

from kcws.

koth avatar koth commented on August 17, 2024

@kinghuangdd 需要升级下你的TF到1.1+

from kcws.

kinghuangdd avatar kinghuangdd commented on August 17, 2024

好啦,谢谢大神!

from kcws.

AlleyEli avatar AlleyEli commented on August 17, 2024

@oneapmlj 你上面说的第二点是正确的吗? 在第6步中”pos_vocab.txt“换位“lines_withpos.txt”

from kcws.

oneapmlj avatar oneapmlj commented on August 17, 2024

@oneapmlj 你上面说的第二点是正确的吗? 在第6步中”pos_vocab.txt“换位“lines_withpos.txt”
是之前没有更新代码的原因!

from kcws.

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.