Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 174f22bf4ec97f8d3b2f554d41feb1faea8936e1 authored by voitijaner on 04 September 2020, 12:40:57 UTC, committed by GitHub on 04 September 2020, 12:40:57 UTC
Update README.md
1 parent 7882624
  • Files
  • Changes
  • e5be55c
  • /
  • README.md
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:174f22bf4ec97f8d3b2f554d41feb1faea8936e1
directory badge
swh:1:dir:e5be55c90709a83201a0059f93a041843b1d864d
content badge
swh:1:cnt:666035a85a4f95a72265bcd3c53cc7f18885c3d7

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
README.md
# Movie-RSs-Master-Thesis-Submission-Voit
Final code submission for the master thesis "Cultural differences in various Wikipedia language versions - An investigation using a movie recommender system"


# Python environemnts 
1) For data transformations, the RDF2Vec implementations (https://github.com/IBCNServices/pyRDF2Vec/tree/4c534b4e1e6df8e6c2f0ae18a43283d5ce320858. Version from Mar 29, 2020) and the similar movie extraction a python 3.7 eviroment is required. This includes the following files:
- side_data_to_movie_list.py
- similar_movie_extractions.py
- statistic_calculations.py

2) The movie GraphLab Create recommender system needs a python 2.7 environemt. Additional requirements can be found in https://turi.com/download/install-graphlab-create-command-line.html. This environment is used for the following files:
- item_similarity_recommender_genre_performance.py
- item_similarity_recommender_number_of_recommendations_productionCountry_genres.py
- item_similarity_recommender_overall_performance.py
- item_similarity_recommender_year_performance.py


# Intital data which is needed to run the program
Note: The files 1. lang_mapping_list_2016.pkl and 2. final_movie_genre_year_county_list.csv / .pkl already exist. They will be overwritten by 1. similar_movie_extractions.py and 2. side_data_to_movie_list.py files, but are needed for the opposite program part.
```bash
├───data
│   ├───cosine_similarities
│   ├───lang_versions # https://wiki.dbpedia.org/downloads-2016-10 (Mappingbased Objects and Instance Types Transitive for each langauge version, .ttl format)
│   │   └───mapping_to_other_languages 	# https://wiki.dbpedia.org/downloads-2016-10 (Interlanguage Links for the english language version, .ttl format)
│   ├───movielense	# https://grouplens.org/datasets/movielens/1m/ (all files, without folder)
│   │   └───movielense_mapping	# https://github.com/sisinflab/LODrecsys-datasets/blob/master/Movielens1M/MappingMovielens2DBpedia-1.2.tsv (renamed to movielensmapping.csv)
│   └───similar_movies
│       └───genre
```

# File definition
Each file contains its own method definitions or program parts, even if they are duplicated in other files. With this techinique so its easier to review and understand the code. 

1) similar_movie_extractions.py
Creates with the use of RDF2Vec python library mentioned above the embeddings for the movies and stores the similar movie lists.
2) side_data_to_movie_list.py
Transforms the MovieLense movie side data and enriches it with production country informations from Wikidata. 
3) statistic_calculations.py
Calculates the sparsity of the data sets at different points of data preprocessing. 
4) item_similarity_recommender_overall_performance.py
Calculates the overall performance over the whole data set for each language version with different k nearest neighbours
5) item_similarity_recommender_number_of_recommendations_productionCountry_genres.py
Calculates the number of recommended production countries and genres per language version over the whole dataset
6) item_similarity_recommender_genre_performance.py
Calculates the genre specific performances for each language version.
7) item_similarity_recommender_year_performance.py
Calculates the year specific performance for each langauge verison.


# Order of execution 
The file 1) similar_movie_extractions.py has to be run before the item_similarity_recommender files 4) - 6)
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API