Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

simple pageranking for search engine

NotificationsYou must be signed in to change notification settings

tommy5198/PageRanking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Information

  • Search each txt file in specified directory
  • Each text file corresponds to a web page in the Internet.
  • There are N hyperlinks in each file, where N>=0.
  • Every hyperlink is of the form (http://filename.txt), which represents the connection between web pages.

Environment

  • Written in Python2.7.8
  • Require NumPy for matrix calculate

You can use pip to install the NumPy library. Simply:

$ pip install numpy

You may needMicrosoft Visual C++ Compiler for Python 2.7 to build NumPy.

Usage

Give specified directory that contains txt files, and give a string query:

$ python IKDDhw4.py<dir><query>

Program will print out file's name and its rank whos content contain given string.For example:

$ python IKDDhw4.py webpage_data_5 知識挖掘與資料工程導論rank    filename1               page2.txt2               page5.txt3               page1.txt

About

simple pageranking for search engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp