Git Product home page Git Product logo

Comments (5)

HaishuoFang avatar HaishuoFang commented on May 30, 2024

Another question: do you consider the directionality of 'hyponym of' in scierc?

from pure.

a3616001 avatar a3616001 commented on May 30, 2024

Hi Haishuo,

For multiple entity pairs in one sentence, do you separately generate a new sentence for each entity pair during training? How do you sample negative samples? I mean entity pairs without relations

Yes, we generate a training instance for each entity pair. Suppose there are n entities in a sentence, we will generate n*(n-1) instances. We didn't downsample negatives and used all of them among those n*(n-1) pairs.

do you consider the directionality of 'hyponym of' in scierc?

Yes. We simply considered all relation types as asymmetric relations in our implementation.

from pure.

HaishuoFang avatar HaishuoFang commented on May 30, 2024

Thank you for your reply! How do you implement it? I didn't find the code of creating two different labels. For example, creating two different labels: hyponym of(S, O) and hyponym(O, S)? I guess you process them when generating data?
Just let the latter entity to be subject and the former one to be object

from pure.

a3616001 avatar a3616001 commented on May 30, 2024

We didn't create two different labels for a relation. For example, for a relational triple (S, hyponym of, O), the label of (S, O) will be "hyponym of" and (O, S) will be "no relation". Creating directional labels for a relation type may bring benefits, but we didn't test that.
You can refer to this code for converting entity data to relation data.

from pure.

HaishuoFang avatar HaishuoFang commented on May 30, 2024

I got you! Thank you

from pure.

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.