Analisando Texto com Modelos Pré-Treinados

Use os modelos pré-treinados para analisar texto e recuperar os resultados usando o serviço Language.

    1. Abra o menu de navegação e selecione Análise e IA. Em Serviços de IA, selecione Idioma.
    2. No menu de navegação do lado esquerdo, clique em Análise de texto.
    3. Selecione o idioma do texto a ser analisado.
    4. Forneça o texto na caixa de diálogo.
    5. Clique em Analisar.

    Os resultados são exibidos com pontuações gráficas e texto relevantes e estão na ordem de modelos pré-treinados. É possível expandir os resultados individuais com as setas.

    Clique em Mostrar JSON para exibir, Copiar e Fazer Download dos resultados individuais. Você pode usar Mostrar resultados padrão para retornar à view padrão.

    Você pode redefinir a página clicando em Reset.

  • Use os comandos a seguir para analisar o texto:

    oci ai language batch-detect-language --documents [<list-of-filenames>] ... [OPTIONS]
    
    oci ai language batch-detect-entities --endpoint-id <endpoint-id> --documents [<list-of-filenames>] ... [OPTIONS]
    
    oci ai language batch-detect-key-phrases --documents [<list-of-filenames>] ... [OPTIONS]
    
    oci ai language batch-detect-sentiments --documents [<list-of-filenames>] ... [OPTIONS]
    
    oci ai language batch-detect-pii-entities --documents [<list-of-filenames>] ... [OPTIONS]
    
    oci ai language batch-detect-text-classification --endpoint-id <endpoint-id> --documents [<list-of-filenames>] ... [OPTIONS]
    

    Exemplos:

    oci ai language batch-detect-language --documents '[{"key": "1", "text": "hello world"}]'
    
    
    oci ai language batch-detect-entities --endpoint-id ailanguageendpoint1677089208435 --documents '[{"key": "1","languageCode": "en","text": "Lawrence Joseph 
    Ellison (born August 17, 1944) is an American business magnate and investor who is the co-founder, executive 
    chairman, chief technology officer (CTO) and former chief executive officer (CEO) of the American computer 
    technology company Oracle Corporation."}]'
    
    
    oci ai language batch-detect-key-phrases --documents '[{"key": "1","languageCode": "en","text": "Lawrence Joseph 
    Ellison (born August 17, 1944) is an American business magnate and investor who is the co-founder, executive 
    chairman, chief technology officer (CTO) and former chief executive officer (CEO) of the American computer 
    technology company Oracle Corporation."}]'
    
    
    oci ai language batch-detect-sentiments --level ASPECT --level SENTENCE --documents '[{"key": "1","languageCode": 
    "en","text": "OCI Language offers state of the art models for analyzing the text at scale with easy to use APIs and SDKs"}]'
    
    
    oci ai language batch-detect-pii-entities --masking '{"mode": "REPLACE"}'  --documents '[{"key": "1","languageCode": 
    "en","text": "Lawrence Joseph Ellison (born August 17, 1944) is an American business magnate and investor who is the 
    co-founder, executive chairman, chief technology officer (CTO) and former chief executive officer (CEO) of the American 
    computer technology company Oracle Corporation."}]'
    
    
    oci ai language batch-detect-text-classification --documents '[{"key": "1","languageCode": "en","text": "Lawrence 
    Joseph Ellison (born August 17, 1944) is an American business magnate and investor who is the co-founder, executive 
    chairman, chief technology officer (CTO) and former chief executive officer (CEO) of the American computer technology 
    company Oracle Corporation."}]'
    

    Para obter uma lista completa de flags e opções de variáveis para comandos da CLI, consulte a Referência de Comando da CLI.