Wordseer / wordseer

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

Parser sometimes gets an array of words instead of a string #127

Closed keien closed 10 years ago

keien commented 10 years ago

The parse_with_error_handling raised these warnings while running the personals:

app.preprocessor.stringprocessor:WARNING:  Parser got a non-string argument
app.preprocessor.stringprocessor:INFO:  [u'single', u'white', u'latino', u'male', u"40's", u'very', u'slim', u'build', u'no', u'kids', u'i', u'am', u'a', u'down', u'to', u'earth', u'open', u'minding', u'seeking', u'chubby', u'or', u'slim', u'latina', u'female', u'friend', u'pretty', u'feet', u'&', u'toes', u'age', u'30yrs', u'old', u'&', u'up', u'to', u'hang', u'out', u'from', u'time', u'to']
app.preprocessor.stringprocessor:WARNING:  Parser got a non-string argument
app.preprocessor.stringprocessor:INFO:  [u'time', u'i', u'will', u'treat', u'you', u'to', u'movies', u'dinners', u'plus', u'$$', u'to', u'pamper', u'your', u'feet', u'for', u'hours', u'i', u'am', u'looking', u'for', u'ltr', u'friendship', u'pic', u'4', u'pic.\n']

Should check to see why this happens

keien commented 10 years ago

Fixed; was a bug in the split_sentences method.