Created
January 30, 2019 08:08
-
-
Save vaskonov/c7acf997bdf16bb54a15e7cd54544372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from deeppavlov import configs | |
from deeppavlov.core.common.file import read_json | |
from deeppavlov import configs, train_model | |
model_config = read_json(configs.doc_retrieval.en_ranker_tfidf_wiki) | |
model_config["dataset_reader"]["data_path"] = "/content/SentenceCorpus/unlabeled_articles/plos_unlabeled" | |
model_config["dataset_reader"]["dataset_format"] = "txt" | |
ranker = train_model(model_config) | |
docs = ranker(['cerebellum']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment