liu246542 / oxt Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ning0luo/oxt
This project forked from ning0luo/oxt
This is document for anyone who want to run this implementation or test it. Note: Current version only works on OSX. -----To install through pip----- 0. assume the git repo path is ./OXT 1. pip3 install ./OXT # it will automatically install some dependencies 2. python3 -c 'import oxt; oxt.run_server()' 3. python3 -c 'import oxt; oxt.run_client()' -----To set up---- 1.Install PyInstaller 2.cd source\ code 3.sh ./gen.sh # it will generate two folder under root path: exe/server and exe/client 4.Open exe/server 5.There is an executable file named server 6.Click it to run server 7.Open exe/client 8.There is an executable file named client 9.Click it to run client -----To upload files---- 1.Set up and check out to the window for client 2.Enter "upload"(notice, without any space in the end!) 3.Enter the absolute path of folder you want to upload. (Notice, the formate of files in the folder must be txt. For testing, you can modify files in test folder directly) =======example ========== operation>upload dir> /Users/ningluo/desktop/law2/test /Users/ningluo/desktop/law2/test Done sending! ----- To search --------- (Warn: you can only search after you have uploaded files and don't terminate the program after that) 1.Check out to the the window for client 2.Enter "search"(notice, without any space in the end!) 3.Enter keywords you want to do conjunctive search, split them with commas(notice, without any space in the end!) 4. Get the result. =======example ========== operation>search keywords>ning,hello tokens produced... no such files operation>search keywords>ning,and tokens produced... result: {'/Users/ningluo/desktop/law2/test/test.txt', '/Users/ningluo/desktop/law2/test/test3.txt', '/Users/ningluo/desktop/law2/test/test2.txt'} ----- To exit --------- 1.Check out to the the window for client 2.Enter "exit"(notice, without any space in the end!) =======example ========== operation>exit logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.