Giter Site home page Giter Site logo

Comments (5)

Spico197 avatar Spico197 commented on June 9, 2024

Hi, there. Thanks for the comments.
Since there are no negative samples in the training set, the model cannot well predict N/A event.
Besides, documents without event instances would be removed during pre-processing (for DuEE-fin only).
You can absolutely add an additional N/A event and negative samples with some code adaptation to provide a more accurate N/A instance prediction.

from docee.

TinaGioro avatar TinaGioro commented on June 9, 2024

Thanks for replying. I find another problem about what if there are more than one arguments in an argument role. Does the model take that into account?

from docee.

Spico197 avatar Spico197 commented on June 9, 2024

Thanks for replying. I find another problem about what if there are more than one arguments in an argument role. Does the model take that into account?

Yes, PTPCG can predict more than one argument for each role. This is a common practice when we participated in LIC'21 (DuEE-fin):

  • your data can be formatted as something like below:
"recguid_eventname_eventdict_list": [
  [
    0,
    "EquityPledge",
    {
      "Pledger": ["李云春"],
      "PledgedShares": ["40789194股", "123123股"],
      "Pledgee": ["招商证券股份有限公司"],
      "TotalHoldingShares": ["162103218股"],
      "TotalHoldingRatio": ["11.55%"],
      "TotalPledgedShares": ["86304393股"],
      "StartDate": ["2015年5月7日"],
      "EndDate": ["2016年5月6日"],
      "ReleasedDate": ["2016年5月6日"]
    }
  ]
]
  • make code adaptations to fit such a format (e.g. 1) write new features in data helper to keep multi-arg roles ; 2) multi-hot encoding rather than one-hot when calculating role's classification loss)
  • important: set unique_role=False when predicting argument roles: predict_span_role(batch_span_emb, unique_role=False)

However, since the other baselines (Doc2EDAG, GIT) are designed on ChFinAnn, they cannot predict many arguments for one role in a single event instance. To make fair comparisons with these systems, we set PTPCG to only predict one argument each time (unique_role=True), and publish the results in our paper.

from docee.

TinaGioro avatar TinaGioro commented on June 9, 2024

Thanks for replying. I am trying to modify the code.

from docee.

xxllp avatar xxllp commented on June 9, 2024

Thanks for replying. I am trying to modify the code.

不知道是否有改好可以跑的代码

from docee.

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.