Comments (4)
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.
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", ...).
from okr.
this was addressed by @shanybar in PR #40.
from okr.
@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)
- Artifacts from cleaning? HOT 5
- Weird parsing by PropS wrapper HOT 3
- Split entities to nouns? HOT 5
- Problems arising from errors in dependency parsing
- PropSWrapper not including arguments with more than one node HOT 1
- Make sure PropS abstract nodes don't make it to the proposition structure HOT 1
- Fix elements interchange HOT 3
- Consider introducing some sort of unit tests HOT 2
- Python import stop_words fails HOT 2
- determiner in an entity mention HOT 1
- Nominalizations? sentences without any entities or predicates in the pipeline output HOT 1
- template of implicit proposition is misformed HOT 1
- Implicit proposition argument ordering backwards HOT 1
- Important argument disregarded after implicit propositions added HOT 1
- props_wrapper: symbol A1 in template but not in list of entities; symbol P at entity name HOT 1
- not taking the head of noun compounds HOT 2
- evaluation- some input tweets has no gold annotation
- prefix "A" for Predicate in props_wrapper output HOT 1
- prepositional phrase of nouns is not captured as predicates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okr.