Web query classification using analysis of inter-article relationships in Wikipedia .
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
cluster.py
main.py
tagspace.py
tagspace.zip

README.md

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. 
```