Differentiate MONEY entities #9434
-
I want to differentiate MONEY values using NER (and possibly POS tagging combined with the dependency parser) - is this possible? Do I need to list all verbs that are 'related' to each type of 'MONEY' value? I would like to differentiate expenditure from income, i.e.:
so that I can create entity labels, eg: £10,000: MONEY_INCOME, £200: MONEY_EXPENSE SpaCy documentation does touch on this though it focuses on verb tenses, which doesn't help me with the above query (the example is 'Using entities, part-of-speech tags and the dependency parse' under Rule-based Matching/ Models & Rules) Any help much appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hellos, I'm not sure you need training, can't we just hunt down the money entities with the patterns:
Coming to whether the money is spent, earned, lost, stolen, inherited and so on, it depends on the sentence semantics. This is a sentence level semantical task rather than parsing. But you can still play some tricks here. One can find the verb that the money entity attached in the dependency parser and examine the verb a bit. I can give some clues if you wish 😉 |
Beta Was this translation helpful? Give feedback.
-
Let's print first sentence's dependency tree to have closer look: There are some points:
Basically we follow the dependency arcs Here
Now we detected the verb attached to money amount. 3rd part is about verb semantics, keep on reading 👍 |
Beta Was this translation helpful? Give feedback.
-
OK, 3rd part is about the verb and sentence semantics. Some verbs gives away the sentence semantics, even if you don't see other context words such as:
Some verbs are not so easy:
Some examples: Bank charged 200$ me for getting a credit card. For this verbs, you can extract the verb and make a lookup with a predefined list of verbs most probably. These ones are not easy:
For this verbs you might need a tiny classifier for the sentence semantics. |
Beta Was this translation helpful? Give feedback.
Hellos,
I'm not sure you need training, can't we just hunt down the money entities with the patterns:
Coming to whether the money is spent, earned, lost, stolen, inherited and so on, it depends on the sentence semantics. This is a sentence level semantical task rather than parsing. But you can still play some tricks here. One can find the verb that the money entity attached in the dependency parser and examine the verb a bit. I can give some clues if you wish 😉