mirror of https://github.com/explosion/spaCy.git
Changed pyate code example in universe.json
This commit is contained in:
parent
291b9ad7b9
commit
c7c4cd5fe1
|
@ -2181,19 +2181,23 @@
|
|||
"github": "kevinlu1248/pyate",
|
||||
"pip": "pyate",
|
||||
"code_example": [
|
||||
"from pyate import combo_basic",
|
||||
"",
|
||||
"# 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.'",
|
||||
"",
|
||||
"print(combo_basic(string).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",
|
||||
"\"\"\"\"\"\""
|
||||
"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",
|
||||
|
|
Loading…
Reference in New Issue