# Low threshold - get more tags
result = classer.tag(
source="New study shows coffee may improve focus",
labels=["health", "science", "food", "lifestyle"],
threshold=0.2
)
# tags: ["health", "science", "food", "lifestyle"]
# High threshold - only confident tags
result = classer.tag(
source="New study shows coffee may improve focus",
labels=["health", "science", "food", "lifestyle"],
threshold=0.5
)
# tags: ["health", "science"]