GithubHelp home page GithubHelp logo

Comments (8)

ArlanCooper avatar ArlanCooper commented on June 29, 2024 8

我也遇到这个错误了,请问解决了吗

已经解决了,解决方法:
在windows下面操作,需要修改以下几个地方:

  1. flat_main.py 中,第306行,cache_name中的冒号(:)都替换成井号(#)
cache_name = os.path.join('cache',(args.dataset+'_lattice'+'_only_train#{}'+
                          '_trainClip#{}'+'_norm_num#{}'
                                   +'char_min_freq{}'+'bigram_min_freq{}'+'word_min_freq{}'+'only_train_min_freq{}'
                                   +'number_norm{}'+'lexicon_{}'+'load_dataset_seed{}')

  1. 如果没有GPU,则修改utils.py 第220行添加一行:
device = None

from flat-lattice-transformer.

LeeSureman avatar LeeSureman commented on June 29, 2024

可以试试先在当前目录下新建一个cache文件夹

from flat-lattice-transformer.

ArlanCooper avatar ArlanCooper commented on June 29, 2024

可以试试先在当前目录下新建一个cache文件夹
尝试了,就是在../V0/ 文件夹下,新建了一个cache的文件夹,然后运行代码,还是报错,同样的错误,
cache文件夹下生成的文件:
image

from flat-lattice-transformer.

Jamrainbow avatar Jamrainbow commented on June 29, 2024

我也遇到这个错误了,请问解决了吗

from flat-lattice-transformer.

Jamrainbow avatar Jamrainbow commented on June 29, 2024

from flat-lattice-transformer.

ArlanCooper avatar ArlanCooper commented on June 29, 2024

感谢感谢,解决了。另外还有两个问题不太确定。 1.你生成的yj文件也是这个样子吗? 2.还有运行的时候Found 698668 out of 698670 words in the pre-training embedding.这个正常吗

------------------ 原始邮件 ------------------ 发件人: "LeeSureman/Flat-Lattice-Transformer" <[email protected]>; 发送时间: 2020年11月10日(星期二) 下午3:38 收件人: "LeeSureman/Flat-Lattice-Transformer"<[email protected]>; 抄送: "Jam Don"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [LeeSureman/Flat-Lattice-Transformer] 运行weibo数据集报错 (#42) 我也遇到这个错误了,请问解决了吗 已经解决了,解决方法: 在windows下面操作,需要修改以下几个地方: flat_main.py 中,第306行,cache_name中的冒号(:)都替换成井号(#) cache_name = os.path.join('cache',(args.dataset+'_lattice'+'_only_train#{}'+ '_trainClip#{}'+'norm_num#{}' +'char_min_freq{}'+'bigram_min_freq{}'+'word_min_freq{}'+'only_train_min_freq{}' +'number_norm{}'+'lexicon{}'+'load_dataset_seed{}') 如果没有GPU,则修改utils.py 第220行添加一行: device = None — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

  1. 就是我没看到你发的图,我看了看我的,如果用文本软件打开确实是乱码,应该是二进制文件;
  2. 这个我也不太清楚是否正常,训练的时候我也是这么显示的。

from flat-lattice-transformer.

Jamrainbow avatar Jamrainbow commented on June 29, 2024

from flat-lattice-transformer.

houyuchao avatar houyuchao commented on June 29, 2024

我也遇到这个错误了,请问解决了吗

已经解决了,解决方法: 在windows下面操作,需要修改以下几个地方:

  1. flat_main.py 中,第306行,cache_name中的冒号(:)都替换成井号(#)
cache_name = os.path.join('cache',(args.dataset+'_lattice'+'_only_train#{}'+
                          '_trainClip#{}'+'_norm_num#{}'
                                   +'char_min_freq{}'+'bigram_min_freq{}'+'word_min_freq{}'+'only_train_min_freq{}'
                                   +'number_norm{}'+'lexicon_{}'+'load_dataset_seed{}')
  1. 如果没有GPU,则修改utils.py 第220行添加一行:
device = None

则修改utils.py 第220行添加一行:

device = None我修改了这个,但是出现了这样的报错怎么解决

image

from flat-lattice-transformer.

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.