-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SciSpacy plugin compatibility (#425)
* Added scispacy_model_name * Added scispacy_model_name * version bump for debugging * unnecessary docstring * added models and entityLinkers as enums * added linker cli shortcut -l * undo 2 extra slots and added 1 * cleanup * rolled back entirely * missed commenting one line * reintroduced plugin config * ran make py * rollled back version * temp change in version # * rolled back version * temp version bump * version reset to 0 * added model in onfig a version bump * rolled back version * added model in CLI * added -m * rolled back version
- Loading branch information
Showing
5 changed files
with
29 additions
and
121 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1 @@ | ||
{ | ||
"$defs": { | ||
"TextAnnotation": { | ||
"additionalProperties": false, | ||
"description": "An individual text annotation", | ||
"properties": { | ||
"confidence": { | ||
"type": "number" | ||
}, | ||
"info": { | ||
"type": "string" | ||
}, | ||
"is_longest_match": { | ||
"type": "boolean" | ||
}, | ||
"match_string": { | ||
"type": "string" | ||
}, | ||
"match_type": { | ||
"type": "string" | ||
}, | ||
"object_id": { | ||
"type": "string" | ||
}, | ||
"object_label": { | ||
"type": "string" | ||
}, | ||
"object_source": { | ||
"type": "string" | ||
}, | ||
"predicate_id": { | ||
"type": "string" | ||
}, | ||
"subject_end": { | ||
"type": "integer" | ||
}, | ||
"subject_label": { | ||
"description": "The portion of the subject text that is matched, ranging from subject_start to subject_end", | ||
"type": "string" | ||
}, | ||
"subject_source": { | ||
"type": "string" | ||
}, | ||
"subject_start": { | ||
"type": "integer" | ||
}, | ||
"subject_text_id": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [], | ||
"title": "TextAnnotation", | ||
"type": "object" | ||
}, | ||
"TextAnnotationResultSet": { | ||
"additionalProperties": false, | ||
"description": "A collection of annotation results", | ||
"properties": { | ||
"annotations": { | ||
"description": "all annotations", | ||
"items": { | ||
"$ref": "#/$defs/TextAnnotation" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [], | ||
"title": "TextAnnotationResultSet", | ||
"type": "object" | ||
}, | ||
"TextualElement": { | ||
"additionalProperties": false, | ||
"description": "", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"parent_document": { | ||
"type": "string" | ||
}, | ||
"source_text": { | ||
"type": "string" | ||
}, | ||
"text": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id" | ||
], | ||
"title": "TextualElement", | ||
"type": "object" | ||
}, | ||
"TransformationType": { | ||
"description": "A controlled datamodels of the types of transformation that can be applied to", | ||
"enum": [ | ||
"Stemming", | ||
"Lemmatization", | ||
"WordOrderNormalization", | ||
"Depluralization", | ||
"CaseNormalization", | ||
"WhitespaceNormalization", | ||
"TermExpanson" | ||
], | ||
"title": "TransformationType", | ||
"type": "string" | ||
} | ||
}, | ||
"$id": "https://w3id.org/linkml/text_annotator", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"additionalProperties": true, | ||
"metamodel_version": "1.7.0", | ||
"properties": {}, | ||
"required": [], | ||
"title": "text-annotator", | ||
"type": "object", | ||
"version": null | ||
} | ||
|
||
{"$defs": {"TextAnnotation": {"additionalProperties": false, "description": "An individual text annotation", "properties": {"confidence": {"type": "number"}, "info": {"type": "string"}, "is_longest_match": {"type": "boolean"}, "match_string": {"type": "string"}, "match_type": {"type": "string"}, "matches_whole_text": {"type": "boolean"}, "object_id": {"type": "string"}, "object_label": {"type": "string"}, "object_source": {"type": "string"}, "predicate_id": {"type": "string"}, "subject_end": {"type": "integer"}, "subject_label": {"description": "The portion of the subject text that is matched, ranging from subject_start to subject_end", "type": "string"}, "subject_source": {"type": "string"}, "subject_start": {"type": "integer"}, "subject_text_id": {"type": "string"}}, "title": "TextAnnotation", "type": "object"}, "TextAnnotationConfiguration": {"additionalProperties": false, "description": "configuration for search", "properties": {"limit": {"type": "integer"}, "matches_whole_text": {"type": "boolean"}, "model": {"type": "string"}, "sources": {"items": {"type": "string"}, "type": "array"}, "token_exclusion_list": {"items": {"type": "string"}, "type": "array"}}, "title": "TextAnnotationConfiguration", "type": "object"}, "TextAnnotationResultSet": {"additionalProperties": false, "description": "A collection of annotation results", "properties": {"annotations": {"description": "all annotations", "items": {"$ref": "#/$defs/TextAnnotation"}, "type": "array"}}, "title": "TextAnnotationResultSet", "type": "object"}, "TextualElement": {"additionalProperties": false, "description": "", "properties": {"id": {"type": "string"}, "parent_document": {"type": "string"}, "source_text": {"type": "string"}, "text": {"type": "string"}}, "required": ["id"], "title": "TextualElement", "type": "object"}, "TransformationType": {"description": "A controlled datamodels of the types of transformation that can be applied to", "enum": ["Stemming", "Lemmatization", "WordOrderNormalization", "Depluralization", "CaseNormalization", "WhitespaceNormalization", "TermExpanson"], "title": "TransformationType", "type": "string"}}, "$id": "https://w3id.org/linkml/text_annotator", "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": true, "metamodel_version": "1.7.0", "title": "text-annotator", "type": "object", "version": null} |
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
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