Download a .zip file from wsdm-cup-2017-models containing all the following:
- knowledge graph
- machine learned models for profession and nationality
- Clone this repository and cd into it.
- Under the directory
relsifter, place the uncompressed directorywsdm-cup-2017-modelsand rename it tomodel.
Navigate to the root directory and run the following command. This may take a while.
python setup.py installOnce installed, the following command can be used to run RelSifter. This will create an output file with the same name in the directory specified by the output flag.
relsifter -i input.txt -o ./Start with installing RelSifter in development mode to experiment with extracting features and building models for predicting relevance scores for type-like relations.
python setup.py develop- TF-IDF features: Navigate to
relsifter/characterizationand use thecompute_pertinence.pymodule to compute combined pertinence. - Text based features: Navigate to
relsifter/textprofileand use thefeature_extraction.pymodule to compute Wikipedia abstracts-based features.
- TF-IDF based model: Navigate to
relsifter/characterizationand use themodel_building.pymodule to train RandomForest, Adaboost and/or Ordinal Logistic Regression. - Text based model: Navigate to
relsifter/textprofileand use themodel_buildingmodule to build RandomForest, Adaboost and/or Ordinal Logistic Regression.
Fabian Pedregosa-Izquierdo. Feature extraction and supervised learning on fMRI : from practice to theory. Medical Imaging. Université Pierre et Marie Curie - Paris VI, 2015. English. Github repository: mord