Giter Site home page Giter Site logo

javacourse's Introduction

JavaCourse

2021年春季华中科技大学Java实验设计——内存倒排索引实现

File Structure

SearchEngineForStudent
├─bin  // 生成的class字节码
│  └─production
│      └─SearchEngineForStudent
│          └─hust
│              └─cs
│                  └─javacourse
│                      └─search
│                          ├─index
│                          │  └─impl
│                          ├─parse
│                          │  └─impl
│                          ├─query
│                          │  └─impl
│                          ├─run
│                          └─util
├─index  // 保存倒排索引文件夹
├─javadoc  // 自动生成的javadoc文档
│  ├─hust
│  │  └─cs
│  │      └─javacourse
│  │          └─search
│  │              ├─index
│  │              │  ├─class-use
│  │              │  └─impl
│  │              │      └─class-use
│  │              ├─parse
│  │              │  ├─class-use
│  │              │  └─impl
│  │              │      └─class-use
│  │              ├─query
│  │              │  ├─class-use
│  │              │  └─impl
│  │              │      └─class-use
│  │              ├─run
│  │              │  └─class-use
│  │              └─util
│  │                  └─class-use
│  ├─index-files
│  ├─resources
│  └─script-dir
│      └─images
├─model  // 提供的UML图等
├─src    // 源代码
│  └─hust
│      └─cs
│          └─javacourse
│              └─search
│                  ├─index
│                  │  └─impl
│                  ├─parse
│                  │  └─impl
│                  ├─query
│                  │  └─impl
│                  ├─run
│                  └─util
└─text   // 待建立倒排索引的文本文件目录

Usage

  1. 克隆仓库
git clone https://github.com/Monster2333333/JavaCourse.git
cd ./JavaCourse
  1. 建立倒排索引:首先将文本文件放于./text下,然后运行
>java -classpath ./bin/production/SearchEngineForStudent hust.cs.javacourse.search.run.TestBuildIndex
  1. 搜索
>java -classpath ./bin/production/SearchEngineForStudent hust.cs.javacourse.search.run.TestSearchIndex <Word1> [<Word2> <LogicalComb>]

其中Word1必须给出,后面为可选参数。当只给出一个搜索词的时候,程序进行单个检索词搜索,当给出了两个搜索词以及逻辑组合方式时,程序进行两个检索词搜索的功能。最终程序打印出搜索结果。

javacourse's People

Contributors

dyzhang09 avatar

Stargazers

Zhai Xiangyu avatar Yuqi Guo avatar mch_ucchi avatar  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.