Skip to content

content-lense/content-lense-topic-detection-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Content Lense Text Complexity API 👋

This is a microservice APIof Content Lense, a project that aims at enabling publishers to easily gain insights into their content. This API determines n topics of the given article from a given list of topics.

Please note that this repository is part of the Content Lense Project and depends on the Content Lense API.

Running the service with Docker

Start the container with

docker compose up

Use -d to run it in the background.

Using the api

Analyse articles

To analyse an article send a post request to the /articles endpoint as Content-Type: application/json with the following stucture:

{
  "body": "The entire article.",
  "customTopics": ["Wirtschaft", "Fußball", "Politik", "Wissenschaft", "Geld"],
  "totalTopics": 3
}

The return type looks like the following:

{
    "topics": ["Wissenschaft", "Politik", "Geld"]
}

Sources

Notes

  • as Docker is not yet configured to use the GPU, it takes around 3 minutes to determine a topic for one article (30 topics, 700 words)
  • we tested with GPU: this leads to less than a minute (obviously depending on the GPU instance)
    • e.g. ~ 20 sec for NVIDIA Tesla M60

Supported by

Media Tech Lab media-tech-lab


Cloud Creators GmbH cloud-creators

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •