GithubHelp home page GithubHelp logo

mc-cat-tty / placerank Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 46.34 MB

Final assigment for "Gestione dell'Informazione" ("Search Engines") course @ UniMoRe

Jupyter Notebook 94.23% Python 5.77%
airbnb benchmarking bert-embeddings datasets huggingface huggingface-transformers information-retrieval insideairbnb-data masked-language-models ncurses

placerank's Issues

Pre-ship checks

  • Check installation process (requirements, setup.py)
  • Check TUI
  • Check benchmarks

Presentation

  • EDA - Exploratory Dataset Analysis. Eg. unbalanced reviews sentiment
  • Objectives and functional requirements. Assumptions and user's degrees of freedom (TUI).
  • System architecture
  • Basic retrieval models
  • Weighting models
  • Query expansion: global with BERT vs WordNet, local with Whoosh (?)
  • Sentiment analysis
  • Show results
  • Future improvements: Clustering tree 4 w2v (embeddings from BIG LLM, not BERT)

Sentiment analysis text preprocessing

An exception is raised by the sentiment analyzer when the input text dimension is larger than the maximum allowed (which is 512 characters). Should we define a light preprocessing for reviews to remove markup and other characters that don't influence the sentiment?

The raised exception is in detail:

Token indices sequence length is longer than the specified maximum sequence length for this model (647 > 512). Running this sequence through the model will result in indexing errors

Cache listings

Cache listings when first downloading it, since different inverted index buildings require to download the dataset each time and on slow connections can take up to a minute of total processing time.

Support runtime edit of Whoosh analyzer

To speed up things, we should provide a convenient method to change the corpus analyzer on the fly.

Right now you have to redefine the getDefaultAnalyzer, which is referenced in placerank.logic_views.DocumentLogicView but this makes it impossible to change the default analyzer at runtime.

We could change the function code for getDefaultAnalyzer by making its func_code field referencing the func_code of another ad-hoc function, but I think this is somewhat inelegant and convoluted.

Maybe let's make a factory that returns the appropriate analyzer. Another problem arises: the call to getDefaultAnalyzer, or this virtual factory, is inside the constructor of a class field. I think we should move the inverted index schema outside and create a separate class.

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.