GithubHelp home page GithubHelp logo

chagge / dictionary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natlin/dictionary

0.0 1.0 0.0 340 KB

Auto-completes text for words, phrases, and sentences

QMake 1.22% C++ 78.07% Perl 0.73% Shell 19.97%

dictionary's Introduction

#README Authors Nathan Lin, Lakshmi Prameela Boorada 1.created element.h, word.h, phrase.h, sentence.h, dict.h, word.cpp, phrase.cpp, sentence.cpp, dict.cpp
2.created Element class and added supplied virtual void functions
3.created derived classes Phrase, Word, Sentence in their respective header files
4.added the inherited functions into the header files of derived classes
5.started off the .cpp files
6.added ifstream file(f.c_str()); to dict.cpp to read the file. You need f.c_str() because ifstream takes a char * as an argument, not a std::string
7.created constructors for Phrase, Word, and Sentence with argument of string, stores the string into private data memeber base
8.edited the dict.cpp constructor to read in words to word vector
9.edited the dict.cpp constructor to read in sentences to sentence vector
10.created sets sword, sphrase, ssentence. Copies vector elements into sets
11.edited dict.cpp constructor to get phrases. Copies phrases into set
12.completed complete for words, phrases, and sentences
13.completed check for words, phrases, and sentences
used an '@' for padding the hamming distance
because a ' ' could be part of a phrase or sentence
14.changed check
made the program faster by removing the two sorts at the end
turned sorts into a set<pair<int, string > >.
by doing so, we do not need to go through the entire phrases vector two extra times
15.added destructors for dict, word, phrase and sentence

dictionary's People

Contributors

natlin avatar

Watchers

Chagge 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.