Code Monkey home page Code Monkey logo

Comments (10)

crapthings avatar crapthings commented on August 15, 2024 3

@hjlFrist 这个解压了 改一下文件名就行

mv ltp_data_v3.4.0 ltp_data

image

from eventtriplesextraction.

qriosa avatar qriosa commented on August 15, 2024 1

@fighting41love 不知道你是否还在研究/使用这个项目。我这边使用Ubuntu18.04 + python 3.6的情况下,直接下载的zip文件,下载好后解压到任意目录下(./EventTriplesExtraction)。
再下载楼上crapthings提供的model文件(在此感谢@crapthings )。
再解压到下载好的ltp压缩包文件到(./EventTriplesExtraction),并重命名为“ltp_data”。
再执行"pip install pyltp" 等待安装完毕。就可以直接按照项目主面板readme中的执行样例进行测试了。(PS:README中的样例是有点小问题的,项目中的名字是triple_extraction.py而readme中import的是triples_extraction 多了一个s,需要去掉)。
然后就可以运行成功了。

希望对你还有帮助。

from eventtriplesextraction.

crapthings avatar crapthings commented on August 15, 2024

模型上这下

http://ospm9rsnd.bkt.clouddn.com/model/ltp_data_v3.4.0.zip

建个 ltp_data 目录解压到到里面

我是 osx可能会遇到 10.13无法安装问题参照这里

HIT-SCIR/pyltp#172

from eventtriplesextraction.

hjlFrist avatar hjlFrist commented on August 15, 2024

感谢,不过我是用wins 跑和深度学习机都说加载不了模型。。不知道咋回事。。

from eventtriplesextraction.

liutianling avatar liutianling commented on August 15, 2024

@crapthings 你这个项目跑通了吗?pyltp和模型的版本有要求吗?
我用的是pyltp==0.2.1, model==3.3.0
我用这个跑报错额
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

就是加载模型只加载到了第一个,cws.model
加载第二个模型 pos.model 这时候就报错了
这是怎么回事啊?

from eventtriplesextraction.

crapthings avatar crapthings commented on August 15, 2024

跑通了啊,我就是用的最新的啊,步骤大概是

  1. clone 这个 repo
  2. 进到目录再 clone pyltp 那个 repo
    下完模型 就能用了

第二部要做这个

image

from eventtriplesextraction.

liutianling avatar liutianling commented on August 15, 2024

@crapthings 谢谢,是pyltp模型版本的问题,汗
我用的v3.3的会出现这个问题,换到v3.4的就好了,虽然问题跳过去了,当时不太明白为什么会出现这种简单的加载问题。

from eventtriplesextraction.

fighting41love avatar fighting41love commented on August 15, 2024

Mac OS Mojave 10.14.2 (18C54),pyltp==0.2.1,model=3.4.0
报错:
Segmentor: Model not loaded!
Postagger: Model not loaded!
Parser: Model not loaded!

from eventtriplesextraction.

fighting41love avatar fighting41love commented on August 15, 2024

@crapthings 谢谢,是pyltp模型版本的问题,汗
我用的v3.3的会出现这个问题,换到v3.4的就好了,虽然问题跳过去了,当时不太明白为什么会出现这种简单的加载问题。

什么操作系统哈?我按照你的版本配置,还是没能解决问题啊

from eventtriplesextraction.

qriosa avatar qriosa commented on August 15, 2024

@crapthings 请问大佬知道作者是使用的什么方法生成的那些model文件吗?我想生成一点某个专业领域的数据。或者大佬知道什么方法可以生成吗?还望不吝赐教。谢谢。

from eventtriplesextraction.

Related Issues (19)

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.