Downloads · 30 days
28
20% of all-time downloads
athenahq/ACE-classifier-doc2vec
ACE-classifier-doc2vec is a machine learning model from athenahq. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model classifies content as either "attributed" or "unattributed" using Doc2Vec embeddings and machine learning classifiers.
Downloads · 30 days
28
20% of all-time downloads
All-time downloads
138
Public
Repo size
56.6 MB
Likes
0
Public
Click a slice to open those files.
.model47.7 MB · 84%
From the Hugging Face model README
This model classifies content as either "attributed" or "unattributed" using Doc2Vec embeddings and machine learning classifiers.
Send POST requests to the inference endpoint:
{
"inputs": {
"content": "Your content text here",
"meta_description": "Optional meta description"
}
}
[
{
"label": "attributed",
"score": 0.75
},
{
"label": "unattributed",
"score": 0.25
}
]
import requests
api_url = "https://api-inference.huggingface.co/models/athenahq/ACE-classifier-doc2vec"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
data = {
"inputs": {
"content": "Machine learning models for content attribution analysis",
"meta_description": "A comprehensive guide to ML-based content classification"
}
}
response = requests.post(api_url, headers=headers, json=data)
result = response.json()
print(result)
curl -X POST \
https://api-inference.huggingface.co/models/athenahq/ACE-classifier-doc2vec \
-H "Authorization: Bearer YOUR_HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"content": "Your content text here",
"meta_description": "Optional meta description"
}
}'
The model uses the best-performing combination from extensive hyperparameter tuning across multiple Doc2Vec configurations and classifiers.
handler.py: Custom inference handlermodel_summary.json: Overview of all trained modelsrank_1_*_classifier.pkl: Best performing classifierrank_1_*_doc2vec.model: Best performing Doc2Vec modelrank_1_*_metadata.json: Model metadata and configuration