Skip to content

Web query classification using analysis of inter-article relationships in Wikipedia .

License

Notifications You must be signed in to change notification settings

pranavrc/tagspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tagspace

Web query classification using analysis of inter-article relationships in Wikipedia .

Installing

From ZIP

The ZIP, bundled with dependencies, can be downloaded from here.

With git
$ git clone https://github.com/pranavrc/tagspace.```
$ cd tagspace/
$ virtualenv .
$ pip install python-igraph beautifulsoup4
$ . bin/activate

Running the code

To run the Python script from a terminal, we use the following command:

$ cd tagspace/
$ . bin/activate
$ python tagspace.py <article-name>
$ python main.py
```

For instance, for the articles *Bacon* and *Networks*:

```
$ python tagspace.py bacon bacon -> Domestic_pig -> Even-toed_ungulate -> Ungulate -> Clade -> Organism -> Biology ->
Natural_science -> Science ->
Knowledge -> Awareness -> Conscious -> Quality_(philosophy) -> Philosophy

$ python tagspace.py networks networks -> Artificial_neural_network -> Machine_learning ->
Computer_science -> Science ->
Knowledge -> Awareness -> Conscious -> Quality_(philosophy) -> Philosophy

$ python main.py
Returns the final graph of tags, clustered into a dendrogram model. 
```

About

Web query classification using analysis of inter-article relationships in Wikipedia .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages