Giter Site home page Giter Site logo

grit_doc_event_entity's Issues

IndexError: list index out of range

Traceback (most recent call last):
File "run_pl_s_t.py", line 424, in
model = NERTransformer.load_from_checkpoint(checkpoints[-1])
IndexError: list index out of range
请问这个错误怎么解决呢,

Missing annotations in preprocessed dataset

The original MUC-4 dataset (file key-tst3.v2) contains the following annotations:

0.  MESSAGE: ID                    TST3-MUC4-0002
1.  MESSAGE: TEMPLATE              1
...
9.  PERP: INDIVIDUAL ID            "MILITARY" / "MILITARY SUSPECTS" / "SOME MILITARY" / "ARMED FORCES MEMBERS"
10. PERP: ORGANIZATION ID          "ARMED FORCES"
11. PERP: ORGANIZATION CONFIDENCE  SUSPECTED OR ACCUSED BY AUTHORITIES: "ARMED FORCES"
...
19. HUM TGT: DESCRIPTION           "JESUITS"
                                   "MAIDS"
20. HUM TGT: TYPE                  CIVILIAN: "JESUITS"
                                   CIVILIAN: "MAIDS"
21. HUM TGT: NUMBER                6: "JESUITS"
                                   2: "MAIDS"
22. HUM TGT: FOREIGN NATION        -
23. HUM TGT: EFFECT OF INCIDENT    DEATH: "JESUITS"
                                   DEATH: "MAIDS"
24. HUM TGT: TOTAL NUMBER          -

While the preprocessed file test.json from your repository contains the following annotations for the same document:

    "docid": "TST3-MUC4-0002",
    "doctext": "...",
    "extracts": {
        "PerpInd": [
            [
                [
                    "military",
                    141
                ],
                [
                    "some military",
                    295
                ],
                [
                    "military suspects",
                    1002
                ],
                [
                    "armed forces members",
                    1360
                ]
            ]
        ],
        "PerpOrg": [
            [
                [
                    "armed forces",
                    1360
                ]
            ]
        ],
        "Target": [],
        "Victim": [],
        "Weapon": []
    }
}

Here the Victim is excluded while it should be present according to the original annotations. Why?

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.