Skip to content

Commit

Permalink
updated ontology namespace structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush13y committed Feb 19, 2022
1 parent 88cffbc commit 6991576
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions forte/ontology_specs/ag_news.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"base_ontology.json"
],
"additional_prefixes": [
"ftx"
"ftx.news"
],
"definitions": [
{
"entry_name": "ftx.onto.ag_news.Description",
"entry_name": "ftx.news.ag_news.Description",
"parent_entry": "forte.data.ontology.top.Annotation"
}
]
Expand Down
8 changes: 4 additions & 4 deletions forte/ontology_specs/medical.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"base_ontology.json"
],
"additional_prefixes": [
"ftx.medical"
"ftx.medical.clinical"
],
"definitions": [
{
"entry_name": "ftx.medical.UMLSConceptLink",
"entry_name": "ftx.medical.clinical.UMLSConceptLink",
"parent_entry": "forte.data.ontology.top.Generics",
"description": "A umls concept entity, used to represent basic information of a umls concept",
"attributes": [
Expand Down Expand Up @@ -41,7 +41,7 @@
]
},
{
"entry_name": "ftx.medical.MedicalEntityMention",
"entry_name": "ftx.medical.clinical.MedicalEntityMention",
"parent_entry": "ft.onto.base_ontology.EntityMention",
"description": "A span based annotation class MedicalEntityMention, used to represent an Entity Mention in medical domain",
"attributes": [
Expand All @@ -52,7 +52,7 @@
{
"name": "umls_entities",
"type": "List",
"item_type": "ftx.medical.UMLSConceptLink"
"item_type": "ftx.medical.clinical.UMLSConceptLink"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions forte/ontology_specs/race_qa.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"base_ontology.json"
],
"additional_prefixes": [
"ftx.onto.race_qa"
"ftx.mcqs"
],

"definitions": [
{
"entry_name": "ftx.onto.race_qa.Passage",
"entry_name": "ftx.mcqs.race_qa.Passage",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": [
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions ftx/news/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ***automatically_generated***
File renamed without changes.
Empty file removed ftx/onto/.generated
Empty file.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache License Version 2.0",
packages=setuptools.find_packages(
packages=setuptools.find_namespace_packages(
include=['ftx.*'],
exclude=["scripts*", "examples*", "tests*"]
),
include_package_data=True,
Expand Down

0 comments on commit 6991576

Please sign in to comment.