This file contains hidden or 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
| import spacy | |
| import json | |
| import requests | |
| import os | |
| def get_class_id(label): | |
| """ | |
| Translates the spaCy label id into the tagtog entity type id | |
| - label: spaCy label id | |
| """ |
This file contains hidden or 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 flask import Flask, request, Response | |
| import json | |
| import spacy | |
| import requests | |
| import os | |
| def get_class_id(label): | |
| """ | |
| Translates the spaCy label id into the tagtog entity type id | |
| - label: spaCy label id |