Wordseer / wordseer

The WordSeer text analysis tool, written in Flask.
http://wordseer.berkeley.edu/
40 stars 16 forks source link

FrequentWordStore passes in weird params #165

Closed keien closed 10 years ago

keien commented 10 years ago
{'instance': [u''], 'pos': [u'J'], 'filter': [u'[{"property":"is_lemmatized","value":1}]'], 'start': [u'0'], 'limit': [u'25'], 'user': [u'test'], 'page': [u'1'], 'word_id': None}

The filter parameter contains a list which contains a string that looks like a list of dictionaries. I don't know of any easy way to turn that string into an actual list of dictionaries. I imagine this happens in other places too so if we want to actually use the filter variable, it'd be better if it could be passed in in a less-bothersome format.

macfarlandian commented 10 years ago

it's passing everything as JSON; i'm pretty sure the standard json library has a "load" function that will turn it into a python object. the JS app does this for everything: phrases, search, metadata, etc... changing that would be a massive undertaking

abendebury commented 10 years ago

Yeah, that string just looks like json to me.

keien commented 10 years ago

Oh I see, thanks for letting me know