Basically, from a paragraph, I have to find two entities Role and Oragnization.
- Org should be captured along with their branch location, not their full address if provided in paragraph
- Role can be in bracket and right before bracket at same time like
Org as role(The "Role") - Role can have multiple words
Example paragraph would be:
XXXX, dated as of November 10, 2050, among: (i)
<ORG_NAME_1 PLC>, a public company incorporated under the laws and having its registered office at the 123 Penss Aven, NY, USA (the “<ROLE1>”), (ii)<ORG_NAME_2 PLC>, a public limited company incorporated under the laws having its registered office at Manhattan Blvd, Seattle, WA, as<ROLE2>(the “<ROLE2>”), (iii) the , Guarantors named in some random text hereto, (iv)<ORG_NAME_3>, N.A., Belfast Branch, as<ROLE3>(the “<ROLE3>”), (v)<ORG_NAME_4>, as<ROLE4>,<ROLE5>and<ROLE6>, and (vi)<ORG_NAME_5>Deutschland AG, as<ROLE7>.
After processing, desired result would be linking role with organization.
<ROLE1> --> <ORG_NAME_1 PLC>
<ROLE2> --> <ORG_NAME_2 PLC>
<ROLE3> --> <ORG_NAME_3>, N.A., Belfast Branch
<ROLE4>, <ROLE5> and <ROLE6> --> <ORG_NAME_4>
<ROLE7> --> <ORG_NAME_5> Deutschland AG
Another example would be
XXXX dated as of November 28, 2027 among
<ORG_NAME_1> A/S, a company incorporated under the laws of Australia (the “<ROLE1>”), the Guarantors (as defined herein),<ORG_NAME_2>, N.A., MontrealBranch, as<ROLE2>,<ROLE3>,<ROLE4>,<ROLE5>,<ROLE6>and<ROLE7>
After processing, desired result should be:
<ROLE1> --> <ORG_NAME_1> A/S
<ROLE2>, <ROLE3>, <ROLE4>, <ROLE5>, <ROLE6> and <ROLE7> --> <ORG_NAME_2>, N.A., Montreal Branch
I tried to use PoS, NER but not desired results.
- Played with stanford NLP for NER, but organizations are not detected properly, tried to train my own data but accuracy is not accepted enough. It does not detect all organizations properly and is tagged as
OTHERrather. Did not tweak with actual CRF model. - Played with NLTK python and tried to make some rule around NNP(proper noun) but sometimes roles are detected as verb, sometimes noun and it depends on case also sometimes, so not sure if it is desired approach.
There are not much varieties in paragraph patterns, I can post 1 or 2 more examples of different patterns if needed. Roles are fixed around 40 and organization would be dynamic.
Please suggest if I should read out some specific papers or models. Thanks.