mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
Update universe.json
This commit is contained in:
parent
afb26d788f
commit
a3b7ae4f98
|
@ -118,8 +118,8 @@
|
||||||
"author": "Travis Hoppe",
|
"author": "Travis Hoppe",
|
||||||
"author_links": {
|
"author_links": {
|
||||||
"github": "thoppe",
|
"github": "thoppe",
|
||||||
"twitter":"metasemantic",
|
"twitter": "metasemantic",
|
||||||
"website" : "http://thoppe.github.io/"
|
"website": "http://thoppe.github.io/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2099,6 +2099,102 @@
|
||||||
"predict_output = clf.predict(predict_input)"
|
"predict_output = clf.predict(predict_input)"
|
||||||
],
|
],
|
||||||
"category": ["standalone"]
|
"category": ["standalone"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "spacy_fastlang",
|
||||||
|
"title": "Spacy FastLang",
|
||||||
|
"slogan": "Language detection done fast",
|
||||||
|
"description": "Fast language detection using FastText and Spacy.",
|
||||||
|
"github": "thomasthiebaud/spacy-fastlang",
|
||||||
|
"pip": "spacy_fastlang",
|
||||||
|
"code_example": [
|
||||||
|
"import spacy",
|
||||||
|
"from spacy_fastlang import LanguageDetector",
|
||||||
|
"",
|
||||||
|
"nlp = spacy.load('en_core_web_sm')",
|
||||||
|
"nlp.add_pipe(LanguageDetector())",
|
||||||
|
"doc = nlp('Life is like a box of chocolates. You never know what you're gonna get.')",
|
||||||
|
"",
|
||||||
|
"assert doc._.language == 'en'",
|
||||||
|
"assert doc._.language_score >= 0.8"
|
||||||
|
],
|
||||||
|
"author": "Thomas Thiebaud",
|
||||||
|
"author_links": {
|
||||||
|
"github": "thomasthiebaud"
|
||||||
|
},
|
||||||
|
"category": ["pipeline"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mlflow",
|
||||||
|
"title": "MLflow",
|
||||||
|
"slogan": "An open source platform for the machine learning lifecycle",
|
||||||
|
"description": "MLflow is an open source platform to manage the ML lifecycle, including experimentation, reproducibility, deployment, and a central model registry. MLflow currently offers four components: Tracking, Projects, Models and Registry.",
|
||||||
|
"github": "mlflow/mlflow",
|
||||||
|
"pip": "mlflow",
|
||||||
|
"thumb": "https://www.mlflow.org/docs/latest/_static/MLflow-logo-final-black.png",
|
||||||
|
"image": "",
|
||||||
|
"url": "https://mlflow.org/",
|
||||||
|
"author": "Databricks",
|
||||||
|
"author_links": {
|
||||||
|
"github": "databricks",
|
||||||
|
"twitter": "databricks",
|
||||||
|
"website": "https://databricks.com/"
|
||||||
|
},
|
||||||
|
"category": ["standalone", "apis"],
|
||||||
|
"code_example": [
|
||||||
|
"import mlflow",
|
||||||
|
"import mlflow.spacy",
|
||||||
|
"",
|
||||||
|
"# MLflow Tracking",
|
||||||
|
"nlp = spacy.load('my_best_model_path/output/model-best')",
|
||||||
|
"with mlflow.start_run(run_name='Spacy'):",
|
||||||
|
" mlflow.set_tag('model_flavor', 'spacy')",
|
||||||
|
" mlflow.spacy.log_model(spacy_model=nlp, artifact_path='model')",
|
||||||
|
" mlflow.log_metric(('accuracy', 0.72))",
|
||||||
|
" my_run_id = mlflow.active_run().info.run_id",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"# MLflow Models",
|
||||||
|
"model_uri = f'runs:/{my_run_id}/model'",
|
||||||
|
"nlp2 = mlflow.spacy.load_model(model_uri=model_uri)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "pyate",
|
||||||
|
"title": "PyATE",
|
||||||
|
"slogan": "Python Automated Term Extraction",
|
||||||
|
"description": "PyATE is a term extraction library written in Python using Spacy POS tagging with Basic, Combo Basic, C-Value, TermExtractor, and Weirdness.",
|
||||||
|
"github": "kevinlu1248/pyate",
|
||||||
|
"pip": "pyate",
|
||||||
|
"code_example": [
|
||||||
|
"import spacy",
|
||||||
|
"from pyate.term_extraction_pipeline import TermExtractionPipeline",
|
||||||
|
"",
|
||||||
|
"nlp = spacy.load('en_core_web_sm')",
|
||||||
|
"nlp.add_pipe(TermExtractionPipeline())",
|
||||||
|
"# source: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1994795/",
|
||||||
|
"string = 'Central to the development of cancer are genetic changes that endow these “cancer cells” with many of the hallmarks of cancer, such as self-sufficient growth and resistance to anti-growth and pro-death signals. However, while the genetic changes that occur within cancer cells themselves, such as activated oncogenes or dysfunctional tumor suppressors, are responsible for many aspects of cancer development, they are not sufficient. Tumor promotion and progression are dependent on ancillary processes provided by cells of the tumor environment but that are not necessarily cancerous themselves. Inflammation has long been associated with the development of cancer. This review will discuss the reflexive relationship between cancer and inflammation with particular focus on how considering the role of inflammation in physiologic processes such as the maintenance of tissue homeostasis and repair may provide a logical framework for understanding the connection between the inflammatory response and cancer.'",
|
||||||
|
"",
|
||||||
|
"doc = nlp(string)",
|
||||||
|
"print(doc._.combo_basic.sort_values(ascending=False).head(5))",
|
||||||
|
"\"\"\"\"\"\"",
|
||||||
|
"dysfunctional tumor 1.443147",
|
||||||
|
"tumor suppressors 1.443147",
|
||||||
|
"genetic changes 1.386294",
|
||||||
|
"cancer cells 1.386294",
|
||||||
|
"dysfunctional tumor suppressors 1.298612",
|
||||||
|
"\"\"\"\"\"\""
|
||||||
|
],
|
||||||
|
"code_language": "python",
|
||||||
|
"url": "https://github.com/kevinlu1248/pyate",
|
||||||
|
"author": "Kevin Lu",
|
||||||
|
"author_links": {
|
||||||
|
"twitter": "kevinlu1248",
|
||||||
|
"github": "kevinlu1248",
|
||||||
|
"website": "https://github.com/kevinlu1248/pyate"
|
||||||
|
},
|
||||||
|
"category": ["pipeline", "research"],
|
||||||
|
"tags": ["term_extraction"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user