AndrewFM / NLPFinal

CS533 NLP Question Answering / Information Retrieval
2 stars 2 forks source link

Add a function to grab question answers from a stackexchange domain #3

Closed AndrewFM closed 9 years ago

AndrewFM commented 9 years ago

The API has the ability to provide a search query, and it'll return questions that match that query. I think I also saw that it has another function called 'similar', which I think returns questions that are similar to a query. Maybe we want to use that instead of search.

We'll probably grab the top 5 or 10 results to work with, I guess. Also will probably only hold on to the highest-voted/accepted answer from each question.

AndrewFM commented 9 years ago

For this, fill out the "get_candidate_answers" function in question_answerer.py

MoonWatcher582 commented 9 years ago

Grabs 5 similar questions/domain and returns a list of accepted answers; left in html format for now

MoonWatcher582 commented 9 years ago

TODO: use beautifulsoup to parse out the html.

MoonWatcher582 commented 9 years ago

HTML parser added