Giter VIP home page Giter VIP logo

Comments (5)

Cartus avatar Cartus commented on May 23, 2024

Hi,

Readme for Semeval dataset is under the semeval folder.

Feel free to ask if it does not help.

from aggcn.

zlh-source avatar zlh-source commented on May 23, 2024

好的,谢谢您。我刚刚已经把它运行起来了。

下面我对句子“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)

这是我的生成结果:
image

这是您数据集里面这个句子的信息:
image

我第一次使用Stanford CoreNLP,不是很理解。劳烦您帮我解释一下"stanford_head"是怎么由三元组转化过来的?
十分感谢!

from aggcn.

Cartus avatar Cartus commented on May 23, 2024

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.

zlh-source avatar zlh-source commented on May 23, 2024

好的。谢谢您的回复。对我帮助很大!

from aggcn.

Cartus avatar Cartus commented on May 23, 2024

No problem. I will close this issue, feel free to reopen it if you have further questions.

from aggcn.

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.