Jaidev Deshpande
Jaidev Deshpande
Check if labelstudio can be used to annotate tokens and spans.
In the variable settings modal, find a way to support simple if-else logic. Consider the following sentences: ``` A randomly generated number is positive. A randomly generated number is negative....
Can't delete the selected variable. 
Any variable in a narrative can have an optional sentiment. For example: ```jinja {% set trend = 'increased' if x > 0 else 'decreased' %} Sales have {{ trend }}....
When NLG is imported into another gramex app (the "host" app), alongwith uploaded datasets, allow any formhandler URLs present in the host app as sources of data.
[`nlg.utils.ner`](https://github.com/gramener/gramex-nlg/blob/dev/nlg/utils.py#L133) wrongly clubs named entities and nouns together. This is a problem because NEs undergo a literal search, whereas nouns _should_ undergo a lemmatized search. E.g. `"Inception is a good...
In context of the [actors dataset](https://github.com/gramener/gramex-nlg/blob/dev/nlg/tests/data/actors.csv), ```python doc = nlp('James Stewart has the highest rating.') fh_args = {'_sort': ['-rating']} nugget = templatize(doc, fh_args, df) print(nugget) ``` ```jinja {% set fh_args...
Datasets may have hyphenated column names or names separated by underscores, like the iris dataset. Initialize the spaCy tokenizer with [modified infix rules](https://spacy.io/usage/linguistic-features#native-tokenizer-additions) to handle this.
Currently, an inflection is defined as one of the five following modifications to a word: * uppercase * lowercase * capitalization * singularization * pluralization. The detection mechanism works by...
Nuggets should have a `.clone()` method, which copies a nugget but assigns a different set of FormHandler arguments. This would help auto-generate new nuggets. E.g, in the context of the...