import re
import requests


class Freeling:

    def __init__(self, host, port):
        self.endpoint = f'http://{host}:{port}'

    def analizer(self, text, logs=False):
        if logs:
            print(text)
        headers = {'Content-Type': 'text/plain'}
        response = requests.post(self.endpoint, headers=headers, data=text.
            encode('utf-8'))
        content = response.content.decode('utf-8')
        content = re.sub('\n\n', '\n', content)
        content = re.sub('\n$', '', content)
        if logs:
            print(content)
        return content

4e16c6ab8d8aaaf894ec1505a4fe95822e27fc0e
<mask token>


class Freeling:
    <mask token>
    <mask token>

<mask token>


class Freeling:
    <mask token>

    def analizer(self, text, logs=False):
        if logs:
            print(text)
        headers = {'Content-Type': 'text/plain'}
        response = requests.post(self.endpoint, headers=headers, data=text.
            encode('utf-8'))
        content = response.content.decode('utf-8')
        content = re.sub('\n\n', '\n', content)
        content = re.sub('\n$', '', content)
        if logs:
            print(content)
        return content

<mask token>


class Freeling:

    def __init__(self, host, port):
        self.endpoint = f'http://{host}:{port}'

    def analizer(self, text, logs=False):
        if logs:
            print(text)
        headers = {'Content-Type': 'text/plain'}
        response = requests.post(self.endpoint, headers=headers, data=text.
            encode('utf-8'))
        content = response.content.decode('utf-8')
        content = re.sub('\n\n', '\n', content)
        content = re.sub('\n$', '', content)
        if logs:
            print(content)
        return content

import re
import requests


class Freeling:

    def __init__(self, host, port):
        self.endpoint = f'http://{host}:{port}'

    def analizer(self, text, logs=False):
        if logs:
            print(text)
        headers = {'Content-Type': 'text/plain'}
        response = requests.post(self.endpoint, headers=headers, data=text.
            encode('utf-8'))
        content = response.content.decode('utf-8')
        content = re.sub('\n\n', '\n', content)
        content = re.sub('\n$', '', content)
        if logs:
            print(content)
        return content
