Coder Social home page Coder Social logo

1dxor's Introduction

Welcome to 1DXOR!

Prerequisites

What do you need?

  • mongodb
  • python3
  • BeautifulSoup
  • nltk

Installation

$ git clone https://github.com/papay0/1DXOR.git
$ cd 1DXOR
$ npm install
$ npm run indexing

Use it

MongoDB

Good to know

  • Show all 'tables': show dbs
  • Use a specidif one: use db1
  • See which database I use: db
  • Show all the collections: show collections
  • Delete a collection: db.my_collection.drop()
  • Print content of a collection: db.my_collection.find();
  • Print content of a collection, but more beautifully: db.my_collection.find().pretty();

Schema Database

documents:

{
    "_id" : "0az3e1aze4864aeaze45zac48",
		"name": "D11.html",
    "words" : {
        "day" : 1,
        "over" : 2,
        "sunrise": 7,
        "computer": 1
    }
},
{
    "_id" : "c1a8ze4a8448a4f8484a84z8r",
		"name": "D12.html",
    "words" : {
        "computer" : 3,
        "network" : 1,
        "database": 9
    }
}

words:

{
    "_id" : "c3a9ze5a8449a5f8485a85z9r",
		"word": "georg"
    "documents" : {
        "Document1":1,
        "Document2": 12
    }
},
{
    "_id" : "c15a9za5a8449a58485a70z9r",
    "word" : "sunris",
    "documents" : {
        "Document1":15
    }
}

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.