Giter Site home page Giter Site logo

approximate-matching's Introduction

Read Me


Two text files were used in approximate string matching experiment are queries.1k.txt and tweets.3K.txt. The former one is queries string with US locations, the latter one is target file with numerous tweets. 

The other two text files in folder is the result of experiment. compare_of_bi_gram.txt contains the comparison results between queries and targets based on bi-gram algorithm. It is sorted by lines of queries.1k.txt. The numbers after the line are the tweet IDs that contains the similar content with queries. If there is no IDs after it, that means no similar results have been found. So is compare_of_soundex.txt, which is based on soundex algorithm.


Two programming language file are written by python, which need to be compiled with python version 2.7(the 'cmp' function is no longer contained in python version 3+ which may cause problem in compiling with python version 3+ environment.) The one called as Bi_gram.py is implemented by bi-gram algorithm. It can automatically read content from two text files and write the result into another one. It can also filter the queries tokens which are shorter than 2 characters or are equal to "and". It intersects the array related to first and second token of queries then gets the result which is related to them both. They are all illustrated in report with specific introduction. As well as Soundex.py file. 





approximate-matching's People

Contributors

jizhizili avatar

Stargazers

 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.