File size: 957 Bytes
78c1011
 
 
 
 
 
 
 
 
 
 
 
bc2fd3a
78c1011
 
64d2873
78c1011
64d2873
 
 
78c1011
 
 
 
 
bc2fd3a
78c1011
 
 
 
 
 
 
64d2873
bc2fd3a
64d2873
78c1011
64d2873
 
78c1011
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b71a1322",
   "metadata": {},
   "source": [
    "# Get started with `tanaos-topic-classification-v1`"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "faec5d77",
   "metadata": {},
   "source": [
    "Use the [Artifex library](https://github.com/tanaos/artifex). Install it with\n",
    "\n",
    "```bash\n",
    "pip install artifex\n",
    "```"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "54ba7ee0",
   "metadata": {
    "vscode": {
     "languageId": "plaintext"
    }
   },
   "outputs": [],
   "source": [
    "from artifex import Artifex\n",
    "\n",
    "topic_classification = Artifex().topic_classification()\n",
    "\n",
    "topic = topic_classification(\"What do you think about the latest AI advancements?\")\n",
    "print(topic)"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}