Skip to main content

pres-lg-analysis

const analyze = async (config, input) => {
const response = await axios.post('nlp/analyze', input, config);
return response.data;
};

const input = {
id: '1234',
title: 'Emmanuel Macron in Germany.',
text: 'Mr. Macron visited a trade show in Munich.'
presentationLanguage: 'fr'
}

analyze(config, input).then(report);