Comments (10)
@hjlFrist 这个解压了 改一下文件名就行
mv ltp_data_v3.4.0 ltp_data
from eventtriplesextraction.
@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.
模型上这下
http://ospm9rsnd.bkt.clouddn.com/model/ltp_data_v3.4.0.zip
建个 ltp_data 目录解压到到里面
我是 osx可能会遇到 10.13无法安装问题参照这里
from eventtriplesextraction.
感谢,不过我是用wins 跑和深度学习机都说加载不了模型。。不知道咋回事。。
from eventtriplesextraction.
@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.
跑通了啊,我就是用的最新的啊,步骤大概是
- clone 这个 repo
- 进到目录再 clone pyltp 那个 repo
下完模型 就能用了
第二部要做这个
from eventtriplesextraction.
@crapthings 谢谢,是pyltp模型版本的问题,汗
我用的v3.3的会出现这个问题,换到v3.4的就好了,虽然问题跳过去了,当时不太明白为什么会出现这种简单的加载问题。
from eventtriplesextraction.
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.
@crapthings 谢谢,是pyltp模型版本的问题,汗
我用的v3.3的会出现这个问题,换到v3.4的就好了,虽然问题跳过去了,当时不太明白为什么会出现这种简单的加载问题。
什么操作系统哈?我按照你的版本配置,还是没能解决问题啊
from eventtriplesextraction.
@crapthings 请问大佬知道作者是使用的什么方法生成的那些model文件吗?我想生成一点某个专业领域的数据。或者大佬知道什么方法可以生成吗?还望不吝赐教。谢谢。
from eventtriplesextraction.
Related Issues (19)
- Model not loaded! HOT 1
- 你好,英文的三元组抽取应该怎么做
- 请问ltp的语义角色标注不是基于句法特征的吗,为什么对无法抽取出svo的情况可以改用依存句法分析来呢,盼回复
- 大佬您好,请问在运行的时候出现pytext模型不存在怎么解决,望回复
- 报错
- pattern_event_triples.py的精准度略低
- baidu_svo_extract.py 文件 28 行代码有误
- 英文适用吗? HOT 1
- get_ips
- Argument types are supported! HOT 2
- incompatible constructor arguments. HOT 3
- about paper HOT 2
- Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
- load pisrl.model RunTimeError HOT 4
- LTP SRL接口是否在批量调取时出现内存溢出? HOT 5
- 这个是关系抽取而不是事件抽取吧
- 否定句提炼 HOT 1
- 三元组提取过程不识别未登录词,可以加入自定义字典吗 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventtriplesextraction.