Giter Club home page Giter Club logo

nlpfinal's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

nlpfinal's Issues

Change behavior based on certainty

I'm thinking we'll have three modes of operation. If the program is very confident it has the correct subdomain that matches the question, it'll only search within that subdomain. If it's only kind of confident, it'll search within the top 3 subdomains or something. If it doesn't have a clue which subdomain to use, it'll reject, and tell the user it doesn't know the answer to the question.

Stem questions first

Use NLTK's Porter Stemmer to stem the words in the user's question before passing it to the classifier.
(See 23.1.3 in the book)

Implement query expansion

Augment relevant synonymous words onto the user's question before passing it to the classifier. For simplicity, we can use NLTK's implementation of the WordNet thesaurus. If we want to get fancy (probably not), we can try using clustering to build our own domain-specific thesaurus from the training data, instead.
(See 23.1.6 in the book)

Add a function to grab question answers from a stackexchange domain

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.