Comments (5)
Hi,
Readme for Semeval dataset is under the semeval folder.
Feel free to ask if it does not help.
from aggcn.
好的,谢谢您。我刚刚已经把它运行起来了。
下面我对句子“The system as described above has its greatest application in an arrayed configuration of antenna elements .”生成依存树的代码和生成结果。但是我发现和您数据集里面已经生成的数据不一样。
我的生成结果是个三元组,请问您数据集里面样本属性"stanford_head"是怎么生成的?
with StanfordCoreNLP(r'stanford-corenlp-full-2018-10-05',lang="en") as nlp: dp = nlp.dependency_parse("The system as described above has its greatest application in an arrayed configuration of antenna elements .") print(dp)
我第一次使用Stanford CoreNLP,不是很理解。劳烦您帮我解释一下"stanford_head"是怎么由三元组转化过来的?
十分感谢!
from aggcn.
Basically, u need to write your own preprocessing code.
The head list means the head of the token. Here [the, system, as, described, above, has, ...] [2, 6, 2, 3, 4, 0, ...]
For example, the head of the first token "the" is index 2, which means the second token "system" is the head of "the". Similarly, the head of the token "system" is index 6, which is the token "has". The index of "has" is 0, which means it is the root node of the dependency tree.
For the usage of the Stanford CoreNLP, I suggest you to read their official document.
from aggcn.
好的。谢谢您的回复。对我帮助很大!
from aggcn.
No problem. I will close this issue, feel free to reopen it if you have further questions.
from aggcn.
Related Issues (20)
- code discussion HOT 1
- some error about:"RuntimeError: cuda runtime error (100) : " HOT 4
- About "M identical blocks" HOT 8
- Why the number of classes on the SemEval2010-Task 8 is only 10? HOT 2
- some question about your paper HOT 2
- 请问代码中的mlp output layer 是用来干嘛的 HOT 1
- RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\src\THC\THCGeneral.cpp:70 HOT 2
- About replacing data sets HOT 9
- I found an error: train.py: error: argument --id: expected one argument
- RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /tmp/pip-req-build-ufslq_a9/aten/src/THC/THCGeneral.cpp:50 HOT 1
- how to get standford_head and stanford_deprel for cross-sentence data HOT 3
- F1=0 HOT 1
- the Final Score HOT 2
- how to preprocess the dataset HOT 5
- 关于AGGCN模型细节的问题 HOT 1
- Why did you configure the first densely connected layer with GraphConvLayer? HOT 1
- What is the function of tensor "denom" ? HOT 3
- environment error
- How to test the n-ary relation extraction part of the experiment?
- 适用于中文数据集吗? HOT 3
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 aggcn.