<commit_before>---
layout: page
title: How to access FREME using various programming languages
dropdown: Tutorials
pos: 3.12
---

<h1>How to access FREME using various programming languages</h1>

<div>This tutorial shows how to use FREME features in cURL, Javascript / jQuery or PHP V1</div>

<h2>Example 1: Example API Call</h2>

<div>This example shows how to call FREME NER.</div>

<h3>Example in cURL</h3>

<pre><code>
    curl -X POST -H "Content-Type: text/plain" -H "Accept: text/turtle" -H "Cache-Control: no-cache" -d 'Welcome to the city of Prague.' "http://api.freme-project.eu/0.5/e-entity/freme-ner/documents/?language=en&dataset=dbpedia"
</code></pre>

<h3>Example in Javascript / jQuery</h3>

<!-- HTML generated using hilite.me --><div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin: 0; line-height: 125%"> 1
 2
 3
 4
 5
 6
 7
 8<commit_msg>added content to page snippet use-various-programming-languages<commit_after>---
layout: page
title: How to access FREME using various programming languages
dropdown: Tutorials
pos: 3.12
---

<h1>How to access FREME using various programming languages</h1>

<div>This tutorial shows how to use FREME features in cURL, Javascript / jQuery or PHP V1.</div>

<h2>Content</h2>
<ul>
    <li><a href="example-1">Example 1: Example API Call</a></li>
    <li><a href="example-2">Example 2: CHAINING OF E-SERVICES CLIENT SIDE</a></li>
    <li><a href="example-3">Example 3: CHAINING OF E-SERVICES VIA PIPELINES</a></li>
    <li><a href="example-4">Example 4: SIMPLIFIED OUTPUT</a></li>
    <li><a href="example-5">Example 5: TRANSLATION WITHOUT E-TERMINOLOGY</a></li>
    <li><a href="example-6">Example 6: E-TRANSLATION IMPROVED BY E-TERMINOLOGY</a></li>
    <li><a href="example-7">Example 7: HTML INPUT PROCESSED WITH E-TERMINOLOGY</a></li>
    <li><a href="example-8">Example 8: HTML INPUT PROCESSED WITH E-TERMINOLOGY AND HTML OUTPUT</a></li>
    <li><a href="example-9">Example 9: DISTRIBUTED CHAINING OF SERVICES</a></li>
</ul>

<h2 id="example-1">Example 1: Example API Call</h2>

<div>This example shows how to call FREME NER.</div>

<h3>Example in cURL</h3>

<pre><code>curl -X POST -H "Content-Type: text/plain" -H "Accept: text/turtle" -H "Cache-Control: no-cache" -d 'Welcome to the city of Prague.' "http://api.freme-project.eu/0.5/e-entity/freme-ner/documents/?language=en&dataset=dbpedia"</code></pre>

<h3>Example in Javascript / jQuery</h3>

<!-- HTML generated using hilite.me --><div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><table><tr><td><pre style="margin: 0; line-height: 125%"> 1
 2
 3
 4
 5
 6
 7
 8
{'fraction_non_alphanumeric': 0.16624503071919045, 'fraction_numerical': 0.03144199494036863, 'mean_word_length': 4.385214007782102, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1787342', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1001, 'n_words': 284}