Git Product home page Git Product logo

wow_item_db_ngrams's Introduction

wow_item_db_ngrams

A meaningless collection containing ngrams of various lengths, for all the item names in World of Warcraft (Retail and Classic)

What are n-grams?

"n-grams" are simply n-length strings of characters, where n can be any old number. In this particular context, the n-grams are made up of all the n-length strings that make up the item names of World of Warcraft items.

Perhaps better explained with an example.

Example

Say we want to break up the string morning into trigrams (3-grams). To do this, we create an imaginary sliding window that can fit exactly 3 characters inside of it, and we start at the left-most end of the string. We record what we can see in the window, then we slide the window 1 character to the right. Repeat until the right side of the window shows the right-most character of the string. Note that this does mean all n-grams where n > 1 will overlap to neighboring n-grams!

  1. [mor]ning
  2. m[orn]ing
  3. mo[rni]ng
  4. mor[nin]g
  5. morn[ing]

This means the string morning contains these 5 trigrams:

mor
orn
rni
nin
ing

You may realize that any string of length L contains L - (n-1) n-grams, where n is the gram length. This means any string of length L contains exactly L - (2) trigrams, or L - (1) bigrams, or L - (3) tetragrams, etc.

_underscores_

Please note that all n-grams in the datasets within this repository were generated using underscore padding at the _beginning and end_ of each item name, as this is part of the preprocessing I needed for my fuzzy searching algorithm.

Why?

I ended up generating this data while working on an AddOn for World of Warcraft that lets the user perform fuzzy searches among all items purported by the game servers to exist. I thought some of the data was interesting in and of itself, and so I'm uploading it here.

Licence

Feel free to use any of this data for any purpose, for any reason. Feel free to credit me, too, however this is also optional!

wow_item_db_ngrams's People

Contributors

haatveit88 avatar

Watchers

 avatar

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.