mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-16 01:35:41 +00:00
14 lines
424 B
Python
14 lines
424 B
Python
from flask import request, url_for
|
|
from app.models import SpaCyNLPPipelineModel
|
|
|
|
|
|
def spacy_nlp_pipeline_model_dlc():
|
|
snpm_id = request.view_args['spacy_nlp_pipeline_model_id']
|
|
snpm = SpaCyNLPPipelineModel.query.get_or_404(snpm_id)
|
|
return [
|
|
{
|
|
'text': f'{snpm.title} {snpm.version}',
|
|
'url': url_for('.spacy_nlp_pipeline_model', spacy_nlp_pipeline_model_id=snpm_id)
|
|
}
|
|
]
|