Giter VIP home page Giter VIP logo

Comments (4)

kleinay avatar kleinay commented on June 26, 2024

Changed the input for the cluster_mentions function for propositions.
until now, each mention in the mention_list was a (mention-id, head_lemma, ) tuple, where the score function only used the second element from the tuple (the head lemma).
After my change, each mention is a (mention-unique-id, mention-head-lemma, mention-full-info) tuple.
mention-head-lemma is a string, and is given for backward compatibility.
mention-full-info is a dict containing all the info about the proposition-mention as given by props_wrapper, with a modification of the "Arguments" field, which would be a dict mapping template-symbols (e.g. "A1" or "P2") to their mention records.

a mention for example:
('7_P1', 'suspect',
{'Arguments':
{'A1': {'indices': (2,), 'sentence_id': '7', 'terms': u'down'},
'A2': {'indices': (0,), 'sentence_id': '7', 'terms': u'Turkey'},
'A3': {'indices': (5,), 'sentence_id': '7', 'terms': u'plane'}},
'Bare predicate': ('suspect', (3,)),
'Head': {'Lemma': 'suspect', 'POS': 'VBP', 'Surface': ('suspect', [3])},
'Template': '{A2} {A1} suspect {A3}',
'sentence_id': '7'}

from okr.

OriShapira avatar OriShapira commented on June 26, 2024

Just as another example, in the attached file, notice proposition P.16 has many different unrelated predicates coreferred ("have been targeting", "killing", "raping and killing", "am trying", "western", "able", "are attacking over", "floating in", "one of", ...).

Burma.in.json.txt

from okr.

kleinay avatar kleinay commented on June 26, 2024

this was addressed by @shanybar in PR #40.

from okr.

kleinay avatar kleinay commented on June 26, 2024

@OriShapira , the strange coreference cluster was caused by clustering all proposition that has empty head lemma (failure of the lammatizer return empty string). fixed in #41.

from okr.

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.