Coder Social home page Coder Social logo

compsci's People

Contributors

arwer13 avatar rym21 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ryanmccarl

compsci's Issues

First version of vocabulary program

With respect to the vocabulary program. Here is the starting specification as I see it.

Develop a schema of relational SQL database to store

  • words (all unique)

  • examples of word usage (whole sentences)

  • frequencies of words

    Result: file with sql code to create the schema.
    Notes:

    • At this stage it would be impossible to differentiate word forms, but it's ok.
    • Consider to use SQLite3 as database, because it's the simplest one, but very popular
    • pure xml or json or something like this are not good choices at all for storing and further processing of our kind of data (for many reasons). Some document-oriented (for example json documents) might be considered, but it 's to be a good choice in our case.

Develop a Python program for parsing provided text and adding / updating database.

It should have a simple command line interface: one argument -- path to .txt file

Develop a Python program for querying information about word:

  • all known examples of usage
  • it's frequency
  • it's percentage (among all known unique words)

This program should have a simple command line interface: one argument -- word to look up.

Word frequency database

Can you give me a simple example in code of populating a database using data from a csv file? I uploaded a simple word frequency database in SQLite and Access along with an Excel spreadsheet to Dropbox. These are words I complied from various lists of words that might appear on the SAT, a college-prep test that many Americans take.

Linux learning

Here are some small topics I've thought about

  • filesystem hierarchy
  • main configuration files (/etc)
  • bash basics
  • package manager
  • mounting
  • basic command line utilities
  • Window Manager, Display Manager, Desktop Environments

Problems with program and strip()

Hi Artyom,

I tried to modify my text de-duplication program, which removes duplicate lines from a text file, to remove whitespace before considering whether a line is a duplicate. I used .strip() to do this. Before adding .strip(), the program was missing some duplicate lines. After adding .strip(), it deleted every line! What went wrong?

Thanks,
Ryan
textdeduplicator.txt

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.