Skip to content
Single semester project, Bsc 5 HE-Arc 2013-2014
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FBGraph
data/stopwords
event_analyse
events
main
recommendation
templates
LICENSE
README.textile
__init__.py
app_config.py
manage.py
settings.py
tests.py
urls.py

README.textile

Social Recommendation System

Description

Social Recommendation System is a prototype of recommendation for the website Gokera. It is implemented on a website, with the framework Django. The purpose of the project is not the website, so it’s normal if the quality of the website is poor.

The purpose is to propose events to an user with an hybrid recommendation system. The works is split in few parts:
1) Login facebook and Graph request to obtain some useful information about the user
2) Texts analysis of all the events
3) Recommendation, hybrid feature-weighted system.

For more information, please consult the report.

Installation

Requirements

Before downloading this project, you should have some requirements. These are all I’ve used with this project, on windows. For other operating system, they should be similar.

For windows, what I’ve used :

In a general way, if there is a file like requirements.txt, you should do “pip install -r requirements.txt”.

The version of django used is 1.3.7, installed via Django MongoDB Engine.

TreeTagger

The installation of TreeTagger is a little bit tricky. First you have to download the python wrapper here : http://cental.fltr.ucl.ac.be/team/~panchenko/def/treetaggerwrapper.py. Afterwards, you have to copy it in your python folder Lib.Then, you have to create your treetagger folder that’ll contain the binaries and the configuration files. More information can be found here : http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/.

An example is available here : http://www.fabienpoulard.info/post/2011/01/09/Python-et-Tree-Tagger. Be careful with the accent in french. If you want that works, you must precise that the input and the output is utf-8 and when you pass a string, pass it in unicode (u"….") and it’ll work.

For the french version, here an example of treetagger folder. It could be downloaded here : http://isic.lan/dmsf/files/589/download.
/bin
-chunck-french.bat
-tag-french.bat
-train-tree-tagger.exe
-tree-tagger.exe

/cmd
-filter-chunker-output.perl
-filter-chunker-output-french.perl
-tagger-chunker-french-utf8
-tokenize.pl
-utf8-tokenize.pl

/lib
-french.par
-french-utf8.par
-french-abbrevations
-french-abbreviations-utf8
-french-cunker.par
-french-chunker-utf8.par

Getting started

Once you’ve downloaded and installed all the requirement, change the path to the template directory into the file settings.py and change all \ to /.
Then you must start mongo (mongod.exe) and you might start mongo interface too (mongo.exe —dbpath path_to_data_folder).

Now, let’s execute the code :

Step 1

python manage.py shell
# Inside the shell :
from django.contrib.sites.models import Site
s = Site()
s.save()
s.id

Copy the id into settings.py (SITE_ID)

Step 2

python manage.py syncdb
no

Step 3

python manage.py runserver

Now start you favorite browser and go to 127.0.0.1:8000 and enjoy it !

License

This code is distributed under the terms and conditions of the MIT license.

You can’t perform that action at this time.