pythainlp-thainer-corpus-v2-base-model
pythainlp-thainer-corpus-v2-base-model
Version: 4
HuggingFaceLast updated May 2025
pythainlp/thainer-corpus-v2-base-model powered by Hugging Face Inference Toolkit

Send Request

You can use cURL or any REST Client to send a request to the AzureML endpoint with your AzureML token.
curl <AZUREML_ENDPOINT_URL> \
    -X POST \
    -H "Authorization: Bearer <AZUREML_TOKEN>" \
    -H "Content-Type: application/json" \
    -d '{"inputs":"My name is Sarah Jessica Parker but you can call me Jessica"}'
        

Supported Parameters

  • inputs (string): The input text data
  • parameters (object):
    • ignore_labels (string[]): A list of labels to ignore
    • stride (integer): The number of overlapping tokens between chunks when splitting the input text.
    • aggregation_strategy (string): One of the following:
      • none: Do not aggregate tokens
      • simple: Group consecutive tokens with the same label in a single entity.
      • first: Similar to "simple", also preserves word integrity (use the label predicted for the first token in a word).
      • average: Similar to "simple", also preserves word integrity (uses the label with the highest score, averaged across the word’s tokens).
      • max: Similar to "simple", also preserves word integrity (uses the label with the highest score across the word’s tokens).
Check the full API Specification at the Hugging Face Inference documentation .
Model Specifications
LicenseCc-by-4.0
Last UpdatedMay 2025
PublisherHuggingFace