integrations/fastapi/scripts/main.py
def process_articles(query: RequestModel):
    """Process a batch of articles and return the entities predicted by the
    given model. Each record in the data should have a key "text".
    """
    nlp = MODELS[query.model]
    response_body = []
    texts = (article.text for article in query.articles)
    for doc in nlp.pipe(texts):
        response_body.append(get_data(doc))
    return {"result": response_body}
Process a batch of articles and return the entities predicted by the
    given model. Each record in the data should have a key "text".
    
Process a batch of articles and return the entities predicted by the
given model. Each record in the data should have a key "text".
Process a batch of articles and return the entities predicted by the given model . Each record in the data should have a key " text " .
def process_articles(query: RequestModel):
    nlp = MODELS[query.model]
    response_body = []
    texts = (article.text for article in query.articles)
    for doc in nlp.pipe(texts):
        response_body.append(get_data(doc))
    return {"result": response_body}
def process_articles ( query : RequestModel ) : nlp = MODELS [ query . model ] response_body = [ ] texts = ( article . text for article in query . articles ) for doc in nlp . pipe ( texts ) : response_body . append ( get_data ( doc ) ) return { "result" : response_body }
Process a batch of articles and return the entities predicted by the
given model.
Process a batch of articles and return the entities predicted by the given model .
"""Process a batch of articles and return the entities predicted by the
    given model. Each record in the data should have a key "text".
    """
query
RequestModel