CODAIT / nlp-editor

Visual Editor for Natural Language Processing pipelines
Apache License 2.0
15 stars 9 forks source link

[Feature Request] To provide an option to select output which is under Mapped Term column, when filter is applied on dictionaries with Map Term is ON #130

Open avinashreddy07 opened 1 year ago

avinashreddy07 commented 1 year ago

Is it possible to provide a feature to select output, under Mapped Term column, while applying a filter on two dictionaries, when Map Term in ON. We are working on a requirement. Give a document, we should find the Currency type, by identifying the Country (City/State/Country). To achieve this, we are using two dictionaries (Map Terms) -

  1. Country dictionary - All Cities, States, Countries (Term) are mapped to Countries (Mapped Term)
  2. Currency dictionary - All Countries (Term) are mapped to respective Currencies (Mapped Term)

we are applying a filter(Include/currency_dictionary/span/contains/country_dictionary) to extract Currency on both the above dictionaries. But when we use filter, we are getting the output which is under Term column (ie, Countries), but we need the output which is under Mapped Term column(ie, Currency).

Flow
avinashreddy07 commented 1 year ago

Below are the filter options which we used.

Screenshot 2022-12-08 at 12 02 58 PM
laurachiticariu commented 1 year ago

@avinashreddy07 please upload information to reproduce this defect, namely:

laurachiticariu commented 1 year ago

Ok, I understand that the feature request is to enumerate the attribute names that appear under the 2nd and 5th drop down in the screenshot in https://github.com/CODAIT/nlp-editor/issues/130#issuecomment-1342147130. This is blocked on #70