GithubHelp home page GithubHelp logo

bfindex-search's Introduction

bfindex-search

bfindexを用いた検索システム

環境

  • Python 3.9.5
  • macOS Big Sur 11.2.3

使い方

事前に input_files/ にテキストファイルを格納する.

サンプルデータセットは以下で作った.

seq 1 100 | sed "s/^/katakura/g" > katakura

main.pyを実行する.

python main.py

検索したいキーワードを入力する.

# step.2 -キーワード入力による検索
[Search Keyword | END]> security

false positiveの例

> python main.py
# step.1 -ファイルからキーワードの登録
File = input_files/hello1000
File = input_files/world
File = input_files/hello

# step.2 -キーワード入力による検索
[Search Keyword | END]> hello620
Positive in input_files/hello1000
	 hello165 == hello620
Negative in input_files/world
Negative in input_files/hello

> python main.py
# step.1 -ファイルからキーワードの登録
File = input_files/hello1000
File = input_files/world
File = input_files/hello

# step.2 -キーワード入力による検索
[Search Keyword | END]> hello165
Positive in input_files/hello1000
	 hello165 == hello165
Negative in input_files/world
Negative in input_files/hello

動作例2

$ python main.py
# step.1 -ファイルからキーワードの登録
File = input_files/minamino
File = input_files/koukadai
File = input_files/hachioji
File = input_files/security
File = input_files/hello1000
File = input_files/world
File = input_files/cloud
File = input_files/katakura
File = input_files/report
File = input_files/hello

# step.2 -キーワード入力による検索
[Search Keyword | END]> hello620
Negative in input_files/minamino
Negative in input_files/koukadai
Negative in input_files/hachioji
Negative in input_files/security
Positive in input_files/hello1000
	 hello165 == hello620
Negative in input_files/world
Negative in input_files/cloud
Negative in input_files/katakura
Negative in input_files/report
Negative in input_files/hello

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.