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-models
and rename it tomodel
.
Navigate to the root directory and run the following command. This may take a while.
python setup.py install
Once 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/characterization
and use thecompute_pertinence.py
module to compute combined pertinence. - Text based features: Navigate to
relsifter/textprofile
and use thefeature_extraction.py
module to compute Wikipedia abstracts-based features.
- TF-IDF based model: Navigate to
relsifter/characterization
and use themodel_building.py
module to train RandomForest, Adaboost and/or Ordinal Logistic Regression. - Text based model: Navigate to
relsifter/textprofile
and use themodel_building
module 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