Open pratyakashnewfangled opened 4 years ago
Can you please share your code?
`from nlg.search import templatize, render from gramex.data import filter as gfilter import pandas as pd from nlg.utils import load_spacy_model nlp = load_spacy_model()
df = pd.read_csv('doc2.csv') fh_args = { '_sort': ['Rating'] }
xdf = gfilter(df, fh_args.copy())
text = nlp('roshan is best doctor')
nugget = templatize(text, fh_args, xdf)
print(nugget.render(df))`
I tried df and xdf both in render
And what is the output you are getting?
Name | Rating Vishal | 1 Vikas | 2 Roshan | 3 Praveen | 4 Saroj | 5
I am getting roshan everytime even I changed sort by '-Rating'
Got it. Could you share doc2.csv also?
I'm able to reproduce this. There is a problem with the inflection detection. Will post a fix soon.
Hi, When user will going to get new release with fix ?
@jaidevd even i am getting same issue , even i am providing "-votes", i am getting rating in output rendered text
NLG is not working. I am not getting the expected result even I replicate the same example I am getting James in result when I changed sort by rating for desc it is giving me the same result. [Python Script]