You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc=nlp('James Stewart has the highest rating.')
fh_args= {'_sort': ['-rating']}
nugget=templatize(doc, fh_args, df)
print(nugget)
{%setfh_args = {"_sort": ["-rating"]} %}{%setdf = U.gfilter(orgdf, fh_args.copy()) %}{%setfh_args = U.sanitize_fh_args(fh_args, orgdf) %}{# Do not edit above this line. #}
{{ df["name"].iloc[0] }} is the {{ G.singular(df["category"].iloc[-2]).lower() }} with the highest rating.
The adjective highest should be templatized in the following manner:
Find its lemma and inflected form and put them in a variable.
Tie the lemma to the sort order.
Automatically insert the antonym of the lemma if the sort order changes.
The text was updated successfully, but these errors were encountered:
In context of the actors dataset,
The adjective
highest
should be templatized in the following manner:The text was updated successfully, but these errors were encountered: