In [1]:
from bookworm import api
from pprint import pprint
import json

In [2]:
API_KEY = '--SET ME--'
LANG = 'sv'  # Just Swedish during beta

In [3]:
bw = api.Bookworm(API_KEY, LANG)

Anomalies

Compare two groups of texts


In [4]:
# A few sample short texts with user comments on two Facebook pages
texts_telia = json.load(open('texts_telia.json', 'r'))
texts_tele2 = json.load(open('texts_tele2.json', 'r'))

In [5]:
res_anomalies = bw.anomalies(texts_telia, texts_tele2, max_words=10, min_score=1)

In [6]:
pprint(res_anomalies)


{'less': [{'score': 99999991726, 'word': 'tele2'},
          {'score': 99999991726, 'word': 'tack'},
          {'score': 99999991726, 'word': 'respekt'},
          {'score': 99999991726, 'word': 'spendera'},
          {'score': 99999991726, 'word': 'snäll'},
          {'score': 99999991726, 'word': 'köp'},
          {'score': 99999991726, 'word': 'butik'},
          {'score': 10000, 'word': 'sälja'},
          {'score': 769, 'word': 'reklam'},
          {'score': 769, 'word': 'beställa'}],
 'more': [{'score': 99999991726, 'word': 'Telia'},
          {'score': 99999991726, 'word': 'okej'},
          {'score': 99999991726, 'word': 'nej'},
          {'score': 99999991726, 'word': 'ni'},
          {'score': 99999991726, 'word': 'hat'},
          {'score': 99999991726, 'word': 'hata'},
          {'score': 99999991726, 'word': 'fungera'},
          {'score': 99999991726, 'word': 'använda'},
          {'score': 3333, 'word': 'internet'},
          {'score': 2500, 'word': 'tv'}]}

Categories

See how well a set of documents matches a set of categories. As a rule of thumb, a score >= 0.4 means a weak match. Anything below 0.4 is noise.

Soon there will be an additional endpoint that can be trained.


In [7]:
category_texts = [
    'Denna text handlar om pengar och dollar och ekonomi',
    'Denna text handlar om hamburgare, vitlök och grönsaker',
    'Här är en till text om mat och tomater'
]

categories = [
    ['ekonomi', 'valuta'],
    ['mat', 'matvaror', 'frukt', 'grönsaker'],
    ['djur', 'hund']
]

res_cat = bw.categories(category_texts, categories)
pprint(res_cat)


[[{'category': 'ekonomi', 'score': 0.7887064834414715},
  {'category': 'mat', 'score': 0.31192957070995536},
  {'category': 'djur', 'score': 0.22434491657897268}],
 [{'category': 'ekonomi', 'score': 0.26923399226273675},
  {'category': 'mat', 'score': 0.8601434681766795},
  {'category': 'djur', 'score': 0.30387611097728867}],
 [{'category': 'ekonomi', 'score': 0.2637664920010135},
  {'category': 'mat', 'score': 0.7474414414198356},
  {'category': 'djur', 'score': 0.3212467123306468}]]

Clusters


In [8]:
res_clusters = bw.clusters(texts_tele2, min_cluster_size=10)
pprint(res_clusters)


{'clusters': [-1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              13,
              -1,
              -1,
              -1,
              9,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              12,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              3,
              -1,
              3,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              3,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              3,
              -1,
              -1,
              -1,
              3,
              3,
              -1,
              3,
              3,
              -1,
              -1,
              -1,
              3,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              3,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              3,
              3,
              3,
              -1,
              -1,
              3,
              3,
              -1,
              9,
              -1,
              3,
              -1,
              -1,
              8,
              -1,
              3,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              3,
              3,
              12,
              3,
              3,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              3,
              3,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              12,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              15,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              18,
              17,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              -1,
              -1,
              18,
              -1,
              10,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              10,
              -1,
              5,
              -1,
              -1,
              -1,
              10,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              3,
              3,
              3,
              -1,
              -1,
              3,
              -1,
              3,
              -1,
              3,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              3,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              12,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              9,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              9,
              2,
              -1,
              7,
              -1,
              2,
              2,
              -1,
              2,
              2,
              -1,
              2,
              -1,
              2,
              2,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              14,
              14,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              14,
              14,
              14,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              9,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              8,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              16,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              13,
              2,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              12,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              9,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              17,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              12,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              5,
              5,
              -1,
              5,
              2,
              5,
              5,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              2,
              2,
              2,
              2,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              5,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              2,
              2,
              -1,
              9,
              18,
              2,
              2,
              -1,
              8,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              2,
              2,
              -1,
              2,
              -1,
              -1,
              5,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              2,
              5,
              -1,
              5,
              7,
              2,
              -1,
              -1,
              5,
              5,
              5,
              -1,
              5,
              2,
              2,
              -1,
              2,
              -1,
              2,
              5,
              5,
              -1,
              -1,
              -1,
              5,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              5,
              -1,
              5,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              5,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              5,
              2,
              -1,
              -1,
              9,
              2,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              5,
              5,
              2,
              -1,
              -1,
              5,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              5,
              5,
              -1,
              -1,
              5,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              9,
              2,
              -1,
              2,
              -1,
              2,
              -1,
              11,
              2,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              13,
              -1,
              2,
              8,
              -1,
              -1,
              2,
              5,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              11,
              -1,
              -1,
              -1,
              -1,
              -1,
              15,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              15,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              5,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              2,
              2,
              2,
              12,
              2,
              2,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              11,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              -1,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              -1,
              2,
              -1,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              2,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              2,
              -1,
              2,
              2,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              -1,
              1,
              1,
              -1,
              -1,
              1,
              8,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              8,
              1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              1,
              -1,
              -1,
              1,
              -1,
              -1,
              -1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              1,
              1,
              1,
              -1,
              12,
              -1,
              1,
              -1,
              -1,
              1,
              -1,
              1,
              1,
              1,
              1,
              -1,
              -1,
              1,
              -1,
              -1,
              -1,
              -1,
              1,
              1,
              1,
              1,
              -1,
              1,
              -1,
              1,
              -1,
              -1,
              1,
              -1,
              1,
              -1,
              1,
              -1,
              1,
              1,
              1,
              -1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              1,
              9,
              1,
              1,
              -1,
              -1,
              1,
              1,
              1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              -1,
              13,
              -1,
              -1,
              -1,
              1,
              1,
              1,
              1,
              7,
              -1,
              1,
              1,
              1,
              1,
              -1,
              1,
              -1,
              1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              1,
              -1,
              -1,
              1,
              -1,
              -1,
              -1,
              1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              1,
              1,
              -1,
              1,
              -1,
              1,
              1,
              1,
              -1,
              -1,
              13,
              0,
              13,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              7,
              -1,
              0,
              0,
              9,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              9,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              7,
              12,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              -1,
              5,
              5,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              13,
              0,
              -1,
              0,
              12,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              0,
              5,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              13,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              13,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              7,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              0,
              5,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              0,
              -1,
              -1,
              -1,
              5,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              -1,
              -1,
              12,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              12,
              12,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              11,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              8,
              0,
              0,
              0,
              0,
              0,
              9,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              12,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              12,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              12,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              7,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              12,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              0,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              7,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              12,
              0,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              7,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              7,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              12,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              -1,
              8,
              -1,
              -1,
              -1,
              11,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              13,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              7,
              -1,
              -1,
              0,
              11,
              -1,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              7,
              -1,
              0,
              0,
              0,
              0,
              7,
              0,
              -1,
              0,
              0,
              7,
              -1,
              12,
              0,
              0,
              0,
              -1,
              0,
              0,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              11,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              0,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              12,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              12,
              0,
              0,
              0,
              0,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              7,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              8,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              8,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              9,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              12,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              0,
              -1,
              0,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              12,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              12,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              0,
              -1,
              5,
              5,
              -1,
              5,
              -1,
              0,
              -1,
              10,
              11,
              -1,
              0,
              10,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              5,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              0,
              -1,
              0,
              0,
              18,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              19,
              -1,
              -1,
              22,
              19,
              0,
              17,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              17,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              8,
              -1,
              0,
              17,
              -1,
              0,
              18,
              -1,
              19,
              11,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              19,
              -1,
              0,
              -1,
              17,
              -1,
              22,
              -1,
              22,
              -1,
              -1,
              -1,
              19,
              -1,
              21,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              21,
              -1,
              11,
              -1,
              -1,
              21,
              21,
              17,
              -1,
              10,
              21,
              0,
              -1,
              -1,
              18,
              16,
              -1,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              0,
              22,
              19,
              18,
              0,
              -1,
              -1,
              -1,
              21,
              -1,
              -1,
              -1,
              -1,
              0,
              16,
              -1,
              19,
              -1,
              -1,
              0,
              17,
              20,
              19,
              18,
              19,
              -1,
              19,
              20,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              0,
              0,
              20,
              20,
              -1,
              0,
              20,
              19,
              17,
              0,
              -1,
              -1,
              18,
              17,
              0,
              19,
              0,
              0,
              -1,
              -1,
              17,
              0,
              -1,
              0,
              -1,
              -1,
              20,
              -1,
              -1,
              -1,
              -1,
              0,
              19,
              -1,
              -1,
              0,
              -1,
              19,
              0,
              -1,
              -1,
              14,
              14,
              19,
              -1,
              17,
              19,
              -1,
              -1,
              19,
              -1,
              19,
              17,
              0,
              19,
              -1,
              17,
              17,
              17,
              0,
              19,
              19,
              0,
              -1,
              -1,
              -1,
              -1,
              19,
              0,
              6,
              0,
              17,
              0,
              -1,
              17,
              19,
              -1,
              19,
              -1,
              0,
              19,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              16,
              18,
              0,
              0,
              19,
              -1,
              0,
              -1,
              -1,
              -1,
              17,
              6,
              19,
              -1,
              -1,
              19,
              9,
              21,
              22,
              -1,
              19,
              0,
              -1,
              -1,
              -1,
              22,
              -1,
              17,
              -1,
              -1,
              17,
              18,
              -1,
              0,
              0,
              -1,
              -1,
              19,
              -1,
              -1,
              -1,
              19,
              -1,
              0,
              -1,
              19,
              -1,
              4,
              22,
              -1,
              -1,
              -1,
              19,
              -1,
              22,
              -1,
              0,
              -1,
              19,
              19,
              -1,
              -1,
              -1,
              19,
              17,
              22,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              19,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              22,
              21,
              -1,
              0,
              0,
              -1,
              6,
              -1,
              -1,
              -1,
              -1,
              -1,
              21,
              19,
              22,
              4,
              21,
              0,
              22,
              21,
              0,
              -1,
              -1,
              -1,
              22,
              -1,
              0,
              18,
              0,
              -1,
              19,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              0,
              0,
              0,
              19,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              0,
              -1,
              19,
              21,
              -1,
              19,
              -1,
              0,
              0,
              16,
              0,
              19,
              19,
              -1,
              0,
              4,
              0,
              17,
              19,
              17,
              11,
              4,
              -1,
              -1,
              -1,
              18,
              17,
              -1,
              0,
              19,
              -1,
              20,
              -1,
              -1,
              21,
              0,
              0,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              17,
              -1,
              -1,
              0,
              17,
              -1,
              -1,
              -1,
              21,
              -1,
              0,
              -1,
              0,
              19,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              19,
              21,
              -1,
              -1,
              -1,
              8,
              -1,
              19,
              17,
              19,
              19,
              -1,
              19,
              19,
              0,
              -1,
              -1,
              -1,
              17,
              21,
              0,
              19,
              -1,
              20,
              6,
              17,
              17,
              19,
              -1,
              -1,
              21,
              -1,
              6,
              -1,
              19,
              18,
              18,
              17,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              22,
              -1,
              -1,
              0,
              4,
              0,
              -1,
              0,
              8,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              0,
              22,
              -1,
              -1,
              8,
              -1,
              -1,
              0,
              -1,
              17,
              -1,
              6,
              19,
              -1,
              -1,
              19,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              17,
              -1,
              -1,
              -1,
              4,
              -1,
              -1,
              6,
              4,
              4,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              4,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              0,
              -1,
              17,
              0,
              -1,
              -1,
              0,
              0,
              17,
              -1,
              0,
              0,
              0,
              -1,
              11,
              0,
              -1,
              0,
              17,
              10,
              0,
              -1,
              0,
              -1,
              0,
              16,
              0,
              -1,
              17,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              11,
              -1,
              -1,
              -1,
              0,
              -1,
              17,
              0,
              16,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              21,
              -1,
              0,
              19,
              0,
              11,
              0,
              15,
              -1,
              -1,
              -1,
              11,
              0,
              -1,
              18,
              -1,
              19,
              0,
              -1,
              17,
              21,
              -1,
              -1,
              8,
              -1,
              -1,
              -1,
              17,
              19,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              8,
              11,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              19,
              11,
              -1,
              -1,
              -1,
              -1,
              11,
              19,
              -1,
              -1,
              -1,
              -1,
              -1,
              11,
              -1,
              -1,
              -1,
              19,
              0,
              0,
              -1,
              -1,
              11,
              -1,
              0,
              0,
              -1,
              0,
              21,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              16,
              -1,
              19,
              11,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              19,
              11,
              11,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              19,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              19,
              8,
              0,
              -1,
              -1,
              -1,
              0,
              17,
              10,
              0,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              20,
              11,
              19,
              0,
              19,
              -1,
              -1,
              -1,
              0,
              22,
              -1,
              -1,
              19,
              -1,
              -1,
              -1,
              -1,
              0,
              6,
              -1,
              0,
              -1,
              -1,
              0,
              17,
              0,
              -1,
              6,
              0,
              -1,
              -1,
              -1,
              22,
              17,
              10,
              -1,
              22,
              -1,
              19,
              -1,
              -1,
              -1,
              22,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              19,
              -1,
              22,
              0,
              -1,
              0,
              14,
              -1,
              -1,
              -1,
              0,
              0,
              22,
              -1,
              -1,
              -1,
              -1,
              22,
              -1,
              -1,
              -1,
              0,
              21,
              18,
              19,
              -1,
              17,
              22,
              -1,
              -1,
              16,
              6,
              -1,
              19,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              4,
              -1,
              -1,
              0,
              0,
              21,
              19,
              19,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              21,
              0,
              0,
              -1,
              0,
              -1,
              19,
              -1,
              19,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              17,
              19,
              19,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              0,
              19,
              -1,
              -1,
              19,
              14,
              -1,
              -1,
              0,
              0,
              21,
              -1,
              -1,
              -1,
              -1,
              -1,
              17,
              -1,
              4,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              11,
              -1,
              -1,
              -1,
              15,
              0,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              19,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              11,
              -1,
              -1,
              -1,
              16,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              15,
              0,
              4,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              19,
              0,
              -1,
              19,
              -1,
              15,
              19,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              19,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              19,
              0,
              -1,
              18,
              -1,
              -1,
              -1,
              -1,
              0,
              19,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              15,
              0,
              -1,
              15,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              19,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              16,
              18,
              -1,
              -1,
              19,
              0,
              19,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              19,
              19,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              18,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              17,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              17,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              0,
              0,
              0,
              0,
              20,
              19,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              20,
              -1,
              -1,
              0,
              -1,
              18,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              -1,
              -1,
              -1,
              16,
              -1,
              -1,
              -1,
              0,
              -1,
              10,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              0,
              0,
              -1,
              18,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              17,
              17,
              -1,
              18,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              19,
              0,
              10,
              0,
              18,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              10,
              17,
              0,
              0,
              -1,
              18,
              15,
              -1,
              0,
              -1,
              14,
              15,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              17,
              14,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              11,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              0,
              -1,
              18,
              -1,
              0,
              -1,
              17,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              16,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              5,
              -1,
              5,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              14,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              7,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              11,
              -1,
              12,
              0,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              8,
              0,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              0,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              9,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              5,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              15,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              16,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              16,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              16,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              8,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              -1,
              0,
              -1,
              -1,
              -1,
              -1,
              -1,
              10,
              -1,
              -1],
 'descriptions': [{'words': ['Lucas',
                             'شوف',
                             'Lars',
                             'bashar',
                             'yasar',
                             'Tony',
                             'w',
                             'wow',
                             'sinan',
                             'حجي',
                             'rami',
                             'Ivan',
                             'Anders',
                             'Eric',
                             'Nancy',
                             'Madeleine',
                             'mohamed',
                             'maryam',
                             'Nicklas',
                             'Michael',
                             'Patrik',
                             'mena',
                             'Emanuel',
                             'Christopher',
                             'waleed',
                             '3',
                             'o',
                             'said',
                             'Gabriella',
                             'Gabriel',
                             'الموسوي',
                             'zahra',
                             'والله',
                             'Oscar',
                             'Jacob',
                             'jocke',
                             'Viktor',
                             'Paul',
                             'Angelica']},
                  {'words': ['Mathilda', 'Evelina']},
                  {'words': ['3', 'Per']},
                  {'words': []},
                  {'words': ['baghdad_spurgo',
                             'bagdad_snit',
                             'لغات',
                             'багдад_кървене',
                             'العالم',
                             'لديكم',
                             'bagdad_purge',
                             'bağdat_kanama',
                             'ბაღდადში_bleed',
                             'bagdad_bluten',
                             'bagdad_bleed',
                             'بكل',
                             'الهاشتاك',
                             'بغداد_تنزف',
                             'اصدقائي',
                             'แบกแดดเล',
                             'انشرو',
                             'อดออก',
                             'انشروها',
                             'bagdad_bløder']},
                  {'words': ['lura',
                             'snäll',
                             'spendera',
                             'film',
                             'kära',
                             'köp',
                             'försiktig',
                             'lita',
                             'innan',
                             'jul',
                             'folk',
                             'mobil',
                             'öga',
                             'butik',
                             'tele2s',
                             'telefon',
                             'tele2',
                             'reklam',
                             'trasig',
                             'sälja',
                             'kund',
                             'peng']},
                  {'words': ['thanks']},
                  {'words': ['Marcus', 'Alexander']},
                  {'words': ['Ahmed', 'Elin', 'Hussein']},
                  {'words': ['Amanda']},
                  {'words': ['bäst', 'ni', 'tele2']},
                  {'words': ['al', 'Ali', 'Sara']},
                  {'words': ['Daniel', 'Andersson', 'Johan']},
                  {'words': ['Anna', 'Johan']},
                  {'words': ['underbar']},
                  {'words': ['tele2']},
                  {'words': ['fint', 'er']},
                  {'words': ['tack']},
                  {'words': ['tack', 'tele2']},
                  {'words': ['respekt', '3', 'tele2']},
                  {'words': ['tack', 'respekt']},
                  {'words': ['er', 'kärlek', 'respekt', 'all', 'o']},
                  {'words': ['er', 'kärlek', 'respekt', 'o']}]}

In [9]:
# Print a description of first cluster and all docs that belong to it
print(res_clusters['descriptions'][0])

first_cluster = [doc for doc, cluster in zip(texts_tele2, res_clusters['clusters']) if cluster == 0]
for doc in first_cluster:
    print(doc)


{'words': ['Lucas', 'شوف', 'Lars', 'bashar', 'yasar', 'Tony', 'w', 'wow', 'sinan', 'حجي', 'rami', 'Ivan', 'Anders', 'Eric', 'Nancy', 'Madeleine', 'mohamed', 'maryam', 'Nicklas', 'Michael', 'Patrik', 'mena', 'Emanuel', 'Christopher', 'waleed', '3', 'o', 'said', 'Gabriella', 'Gabriel', 'الموسوي', 'zahra', 'والله', 'Oscar', 'Jacob', 'jocke', 'Viktor', 'Paul', 'Angelica']}
Emmy Jensen
Angelica Famulak
Camila Rossi tväla
Paulina Chodkiewicz  i ty nie idziesz? :O
Josefina Holmgren
Libbis Sujessy
Andjela Milosevic Mirta Mikolčević jeeeeee 😂😂😂😂
Marta Svankvist
Casandra W Norelli😍
Ferial Tan 30 ????
Hazel Can O.M.G
Omg😍😍
Alicia Patron
TjasaSaje 😂😂😂😂😂😂😂
Klara Elvira Pravdic
Ilhan Acaralp alabili Emre Turksson
Maher Awad
Paul Ciobanu
Michaela Ragnarsson
Plats 4325👍🏻
Benjamin Akbari aw yiss
Mentor Kastrati
Adhari Algailani
De säger varje gång att det är den bästa ifånen och alla idioter blir helt shockade😂
Vill också förbeställa 🤘😁
När kan man förbeställa?😁
När kommer man att kunna förhandsboka?
Lars!
Lars Cedervall!
Härligt!
Joel Krebs
Elise Nordin
Tobias Edström
Jonny Öhman
Robban Stormtroopern Öhman som du längtat !!
Cindy Norrby !!!
Johannes Hedlund Putte Jonsfjord
Carina Mattsson
Robban Lindell
Yasin Lekorchi
Tadej Kolenc zdj maš šanso 😉
Jenny Livén
Ami Isavi
Diana Saeed
Madeleine Zackrisson
Jens Cederholm
Zebastian DePistol,Therés Vestin
Zebastian DePistol 🤘
Cricke Wejderstam
Mathe Lec
Sarah Kantojärvi
Carl Platon Jocke Schafer
Peet, vi måste gå😂
Rebecka elr Nathalie
Llavnot Fiel 😍
Sofia
Heidi Haikola
Mathias Oivanen
Petter
Allüx Nebhuchadnezzar Gatica
Ping Hannes Östlund
Ronny Wernström 🤘
Miister Baker✌
Klaas Ruitenbeek
Nicklas Aspeqvist
Eftersom vi blev blåsta i'fjol Sören Hagenwald
Hans Tengstrand 😂😂😂
Philip Rahm
Albin för faaan! 😍😉😜
Anders Tibo
Michael Norrby
Bella Dellen
USA's Takida 😂😂😂😂
Magnus von Feilitzen
Lejla Mulalic Almira Okic hajmo med barnen 😂😂😂😂
Natalia Rivera
Tobbe Svensk till E?
Du måste vara överlycklig Emelia Bothén 😂
The Pinks 2016..
Emmeli Strömberg
Agnes-Lo du som gjort?
När kommer det till Uppsala?
Tarek Chorbaji
Ivan Truedson
Billal Khodr
Erdal Arsenal Ilhan
Andrietta Papp
kom till skåne med :D hahah
Annika Starck
CarLos Franqo
Pontus Sandberg
Ok vi ska komma
Rejhan Dlir jag har bil :)
Lets. Goooo
Jakob Rip
Viktor Stafbom
Adde Jahir Jorge Avila
Tony
Jonas Lindroos
Hampus Broström
Evelyn Anglehed
Dargham Sharifi yalla hahha
Angelique😃
Isabella 😂
Jocke Aguilera
Adnan Yasar
Eduard Kazarian
Roozbeh Naeimi Lukas Fallström
Sahin Bozarslan
Jacob
Robert Hauso Alfrijat
MichaelSarar
Anders Johnsson
Michael
Tanja Grenklo
Eleni Granqvist Nylén ;)
Natti F. Rossi
Otilbap Otrebor Zemog Raúl Jäger Gómez Raul Stanley Fuentes Hernandez Victor Salvador Novoa Gutierrez Alejandro Fuentes Hernandez
Edris Ardalan
Mark Stoker
Per
Maniel Kremizis broooor kaos
Vanessa Turgay
Mikkel Melsom hit ska du ju gå!
Emanuel Holmlund
Angelica GunasingheRuw Dhananjaya
Angelica Gunasinghe
Jimmy Siu
Gabriel Sargon Awrohum 😜
Oskar Ölmhagen
Mariana Cabral
Homan Refat
Mohammedovic Marwan
Sakib Chowdhury
Dennis Enroth
Yasin Yekta Çakıroğlu
Crissan
Emmy Welander
Gabriel Prescott
Charlotta Gyllander :-)
Milton Paulsson
Frans Sorsh när det smäller det gäller
Amir Zamli
Fidel Mendez
Lissette Silva
Marlon Zabala
Joe Touma
Andrej Bob Popov Akib Khan
Tero Sassi Timo Sassi Tina Lejonmark 😂
Lars-tore Dybvik
Timmy Mc Mute
Snookz Palo
Alice Mellark Asplund
Fabrizio Vasquez
Leonardo da Silva
Denniz hhahaha
Isak Alinger ska vi? 😂
Jennie Karlström
Sophia Lavasani
Milad Shakiba
Revatanak Baou Bothda Mattanon Ubonphuean
Isac Arvidsson Felix Lövgren Axel Cozon Döös
Jonahtan Hansson
Linn Sundström
Jens Sundberg
Charles Qvarnström
Jättekul
Alex Dinamarca Brian
Angela
Monica Monkan Thorsell
Hafsa Yasmina Gatuur
Tamas Hess
Mattias Wetterlund
Tim Kinander
Soren Rafii ;)
Emanuel ;)
Kenny, Fabian
Linnéa Firsching
Jesse Holmström😄
Tony Sjöblom
Edris Elias
Christine Gelfgren
Mehmet 😂
George Grice
Rami Banat
Lena Stedt
Rami Banat
Susanna Lago
هههههههههههههههه Dina Amer جيبي ادودي
Amira Blomqvist
Elise Bergström
Olivia, Leyla 😝
VictorFahlgren ;)
Ellinor Wirrie-bell Henriksson
Svante Plars
Viktor Ching
Madeleine Jacobsson
Dmitry  Naes
Åsa
Nerina Aba
Anja Freidestam
Lone Larsen 🙌🏻
Nina Nosen Skogsrået
Christopher Sjöholm 😂
Wiktor Sundh
Jersey Muripa
Megan Rachel Selvidge
Erna Başerdem
Gabriel Leo Chabo
Özgür
Lucas Gerhard Lundell
Ferhat Yildirim
Diireeekkt
Ludwig Jordung
Sixten Strandell Ivan Ceraolo
Matin Alaverdi
boiiiss Rewing Aldabag Roozbeh Naeimi
Kristina Karolina OlmeDavid Tollman
Faisal Bihi
Hhhhhhh  pokemon
Sandy Pieer säger ju kom 😂
Celisty Shamon
Jacob Shamoon
Patrik Gahne
Elia Rhawi Josef Polus
Viktor! ;)
Markus Lingman
Rabi
Lisa Pelow
Charbel Norsborg
Thesso Forsén
Wilma Berlin
Kungen Tomi Koho
Christoffer
Aron C. Turén
Christopher
Role Aziz Rebin Kadouri  😆
:o
Oscar Lundqvist
Jasmine Malmqvist
Morgan Ullenius
Natan Samsson
Gabriella Rembjer
Mel Ros
Enis Özkan #sammamessi
Cathleen Rockín Dolly Lundberg
Rick Kessler
Ninette Kessler Ljungdahl
Christopher Lehtonen
Ferro Sener
Rasmus Bergene
Louise Norén här ^^
Shantall D. Gonzalez
Eric Osana
Görkem Yigin Levent Yigin
Jakob Westberg
Tom Hagéus
Danijel Trkulja Mikaela Lundh Haraldsson Rania Tidora Simonsson
Oskar Wahlström dagsfylla Medis?
Denise Roos
Paul Hansén Cardenas
Oscar Thuvander
Adan Anwar
Gabriella Brito Rolando Dondero 😋
Christoffer
Marie Björlekvist du är taggad ser jag!!!! weeeee
Paul Lindholm
Jeanette Pahlén
Katayon
Mattias Bertheim😏
Mario Ibarra Samira Lindström
Tim lööw
Love Ärnbäck Ferm
Göreeee Carl W Edstroem
Dimitris CR
Jacob Krensler ska det bli en heldag av trollande?😂
Anders
Justina Justinos 😁
Adde Sandh
Carolina Herranen
Ricardo Gonzalez P
Fadi Elia
Abdisamed Mohamed
Alexandra Aravena Hammarström
Sussi Ariz
Artur Jaszczak
Gusten Tingström Elias Tingström
Oscar Sahlin
Ingrid Castillo Nancy Castillo Velasquez
Victoria Friman
Kristian Khan ☝🏻️
Andrew Ho Lisan Chen
Fredrika Segerström Tobias Mörk
Vincent Björk
Emeli Gürsoy
Michella Aydogan
Shahrukh Shovon Zaman
Ibbe Alend
Julian Yakob ska vi dra?
Charlie Samuelsson Madde Bergqvist
Leslie Garcia Ska vi gå eller? :D
Greta Hidalgo
Gabriella Rembjer
Cornelia Janewall
Asal Faysal 😜😜
Anneli o Patrick
Joy Hana
Susanne Hammarqvist
Gabriel Gaben Fröjd
Karhan Piran Armagan 😂
Emanuel Orellana
Kenji Raphael Bergström
Sam Talari
Antonio Valderrama
Bianca åk till Stockholm
Adel Fakih
Asrinne Nazari
Leith Rorita  ska vi 😂
Viktor ToftbergerJessica Ekvall 😂
Maryam Chocoholic
Sparel Danho MJ Jabbar Mohamed
Patrik Hagnell
Kralex De Souza
Rickard De
Fabian Graan
Romana Arnoldsson 🍭🍭
Eric Kurtto Alfred Pethrosson
Alex Korkmaz lunchrasten?
Philip Alarik
Kristian Åke Yrjänä 😭
Tina Wilhelmsson
Poya Fathy Moain
Gustav Ottinger
Jocke Aldenbro
Andrée Stööp
Work </3
Adrian Köhler PalmTim NilssonHampus Sundberg
Julius Linden
Michael Duchén
Jimmy Saliba
Lucas Puttonen Karl Wallentin Marqus Almling
Victoria Anice Kihlmark
Jenny kanske lite på måndag ;)?
Isabell Ellinor Lukas
Annika
Jasmin Jasmine Thomsson
Julio Holmqvist wtf
Karin Waller
Bahman Afsardir
Patrik Ohlsson
Wrar
Krim Van Riot
Саша Дујаковић 😂
Joy Joy ohh omgång 2? 😋
Sibel Çiftçi Adem Mert
Paulina Zeromska
Shahin Saleh
Lorkin Rosas Cuares Nancy Lee Narin Ashyan Léo Guignard Adler
Elmas Degirmenci😳
Lilian Evangelina Tsavi
Wachi
Denise Elena Carlqvist
Milka Zelić Zakaria MRad
Charlotte Lottis Spångberg
Serven är nere!! :-O
Noooo!!
Nicklas 😂👍
Sam Kullgren
Madeleine
Manolo Vasquez vi går nu
Bob Sixfinger
Michaela H Marttinen
3 pokestops i medis, 2 pokestops och ett gym i humlegården.
Falsk marknadsföring! Knappt någon Lure är utlagd 😢
Lolo 😭😭
Ronahi Ilona
Elina o Nicklas 😄
Lucas Gran
Nathalie Vaudan
Anya
Prem Ridwan Huq
Marta Coelho :)
nry
Dag Granath det är de här jag menar..
Valon Hasanaj Banky Thompson
Angelo Rong
Hur gör man för att ansluta?
Stavros Delivasilis jag ska bytta till tälä2 aide
Stort lögn
Skall testa detta rejält!
Kamal Ibrahim
Afnan Aladili Alaa Amjad
Zahra K Sabry
Grymt bra!
Sawin
Viyan Kadum
Dahlia Jaffer
Armin
Aiven Bani
Salam Musa Jaffer
<3
Hassan Altimimi
Jannat Elson
Kamil Jaromin
Delovan Mizori Iman Mzuri Ivan Mizori Sardar Mizori Sagvan M. Marouf Viann Maruf
Hasan Saja Jonna
Shama Vafaipour
Sama Heidari
#prayforbaghdad
Karam Hakeem
Maryam Mahdi Susan Faily
Ari Bakr Sorani xhwa boyay sw sw bika
Harir Alnáimi
Kubba Riad
Bashar Jabr
Waleed Shakir, Khalid Shaker
Senoo Sinan
Safa Hayder
Fejer Layth
Maryam Yaqoo
Donya Abbas
شرفاء
Bea Beabea
شوف الغرب احسن منه بمليون مره والله !
Kubba Riad
Zahra Rashid
MohammedMay
Rayoma
Moses Jassim
Nouraldin Efternamn
Better than neighboring countries
Thikra Attia Saad Mozan
ثائر
Rafal Aldulimi Noor Aldulaimi
ty
Wasan Khodaier
Hala Alkuheli
Taymaa Sami Jalil
Qassim Othman
Arkan Aldulaimi
Zahraa Jamil
شكرا لانسانيتكم مع العراقين
Khairi Haji
Sura Alsaifi
Hala Hawa Waleed Hawa
Anas Hamid Zahra Dia
Tamara Rived
Abdulkareem R H Aljuboori
Soz Osman
Meh Di
Ghassan Natik AlSarraf
Ayad Owda
#prayforiraq 😔🍃
Saleem Montana
Zakaria Saad Sadek يوسف صنا
Dhamiaa Alrawy Duha Alsamarai
Wisam Alezzi
Aiser Ammar Mayami  May  Wasan  Liqaa
RaMi Alsahrawi Ragheed Raedr Almhana Aysar Alsahrawi
الانسانيه
زيد زيد ال مخلف الدعمي
Yassir Abdullah شوف حجي
SaifNasseri
Yassir Abdullah شوف حجي
احمد اللامي
حجي باقر
<3
منال العبس
Rosa Rawi
ناس عدهم رحمه ونسانيه والله يستحقون الجنه ،
بله احنه نطب الجنة وانتوا لا ؟ ممستوعبها الصراحه
محمد الموسوي
بشر يستحقون الاحترام
باقر المهنا  يابه شوف
Maad Maad
amazing
Omar Adnan
حسام صلاح السويد تسوي الاتصال للعراق يومين مجاني
Jamila Jouda
#TackochRespekt ❤️😔
Mostafa Qassem
Muntadher Abeed
Nidal Altai  Zahraa AlMajed
Daria Jamal
Mostafa Alqaisi
Omer Mekdad
Najs att kapitalisera på mänsklig tragedi. 👌🏻
DaloȜa W Klmty MsmoȜa
Fahad Falih Ahmad Falih
Mahmoud Altaei  الشغله صدك.
Ashor Tamara Almhna Lara Almhana
Shama Vafaipour
Bahaa Najm الي افتهمته منهم اكدر اخابرك وتخابرني بلاش
Wiam El
Husein Safaa Abbas
Dadoo Chahto
Awaz Taha
اي والله الغريب يحن علينا والقريب يذبح بينا
Hisham Akreyi
Lana Kamal
Nohad Kattan
Armeen Akram
Mohammad Almadani هاي صدك ؟
Shwan Raoof Amged Baghdady
Nabeel Bjram
<3.
خلي مصطفى يجرب Abeer Alward
Sudad Abdulkarim
Najwa George Hamami Mouayed Gorgis Alnofaly Aseel George Hamami Merna Albeer
Forat Foraat ❤️
Hiydar Awad
Sinan Abd
Fanar Alkhalaf
Layla Kirkuki
Repekt 💙❤️
Menar Athahb
Hassan Alaridi
Nejat Hasson
Sivan Said  Ara M Gyliana
هههههه
Selma Salimi
ابو حسن العامري Om Malak  بعد شتريدون اتصال مجاني اجاكم ٣ ايام
Albana Jusufi Islami wow
V❤️❤️❤️👌🏻👌🏻😢😢🇮🇶🇮🇶🇮🇶
Naxada
Bushra Fathalla
Ellen Zeipel
Lolo Amin 😔
Tarek Tarek
Jumana Sharif
Aldina
Ammar Elewi
علاء الموسوي
Hamdi J Hakim
Musti Jamillie
Rokan Haydar
Mahir Andrawes
det stämmer inte -_-
Ameen Waleed
Sarah Dheyab
Anosh Parvazi
Rosol Nahee
Rusul Alkafaji
Duraid Darwish
Adriana Hiba
Fatima Hussain
Alyaah Alasadi
ماجد قاسم
Asmaa Almuathin
Nora Feylie Haydar ❤️
Ragheed Abdulla
Manar Aldaghir
بيليه بيليه
Taif Rasoul
Mazin Dahel
صۧہٰفہٰاوي 'ۦ،
Zaid Ajjam
كل الشكر والتقدير
Seif Hamied
Hakim Khalif
<3
Kungliga på gud
Samir Blaseeni
Wow ❤️❤️❤️
Prayforbaghdad😭❤
Nora Faisal لسدين التلفون اليوم 😁
Aldin Dino Šehović
كل الشكر والتقدير ❤️❤️
Mazin Said
Ah Alsamaraei
Sham Bobo
Janan Bodagh
Shad Kader Wara malawa
Bashar Jabbar
ولله عمي شرفاء
Rownak
لا انريد مكالمات ابلاش ولا اقايم انريد بس مقابلات Oth Man
Essa
Emrah Kardovic
How kind🙏
Ajnur JashariArben RamadaniSebastijan MontanaSafet HasaniMensur PejdaMersion PejdaJunuz RamadaniElvis JasariAlmir Pejda
Hamdia Awaad
Fatima Said
Wow. 👏🏽
Lillyie Zainy
Najma Shegow
Hawra Faraj
Nawal Josra
Bami Barghashi
سيد العسكري موسوي الموسوي عقيل الموسوي
Toli Atiya
على رب العباد
Min granne är där
<3
Daniella Wahlbom
Havva Gül
Deni
Gökhan
Tijani
❤️❤️❤️❤️Dilara Coban Özge N. Hümmet
Cagdas Bindak
Faruk Öz
Sahin Temel
Feride Dillinger
Nuri Necmiye Göcer
🙌🏻💙 Sevinc Corap Rencber Sema Corap
Hakar Sadi
Tarkan Sultan Temel
Ertan Hümmet Boran Hümmet
Sinan Ibram 🙏
Rojda Sari
Mathias Goldkuhl
Fetene KavakRabia MermerZehra KanAysegül Erdogan❤️
Nancy Toma
Nuri Yapisan
Coskun Sami 👍🏼
Valentina Haxhijaj Gashi Arian Ahmeti Ardiana Ahmeti
HATTEN AV!!!! ❤️👏🏼
Burak Adaş
Neval Dinc
Hatten av! ❤
Fethullah Oguz  Erhan Fidan Şehmuz Ortac
Snyggt gjort ❤️👍🏼
Gina Samat
Fatmé Suzanna Ghayada Yolcu
Nimet Celik
Sirage Simmo Gzim Krasnici
Gulnaz Saida
Hakan Kirdall
Yami Alkhatib
Kenan Spinger
Inte illa Umm Hamza Kawthar Isbai
Nor&Mahamed!!
Macide Görgulu de bra..🙏🏻
Dilan Renkal 😔❤️
Yasser Fahham
Wow👏🏾👏🏾👏🏾
محمد خير خليل
Elif Princl ❤️
Till Libanon då?
Emad Daowd
Abow Cihan Akalin
Josef Kavak Esref Kavak Halim Meri Kavak Talal Kavak Jamal Kavak
Resul Öcal
Zahara Mohamed Asiya Abdulkadir
Ayan Mahdi
Du måste aktivera roaming
Burtay Badem
حسام الدين مصطفى
Diana Imeraj
Hayriye Aptula
Shange
Elmas Cömlek Demirkıran
Per Bohlin Lotta Fagerström
Karima Belaloui 😳😳
Ayse Gökce
Uğur Durmuş
Gäller de även till ett turkiskt nummer ?
Akrep Önal 👍
Oyuna gelmeyelimde,
Ismail Muhammed İsmaıl ♡♡
Jättebra
Haidar Chikh Chafic Dana
Föredömligt 👍
Ömer Yurek Helin Yurek
Cathi Cathy
Hanan Abtidoon
Yasar Atici
Yasar Ayhan
Kristina Antoun Ucar
<3
Yahya M. B. Alheraky Walaa Arouri
Olcay Aksakal
Lara Taha
Uppskattande 👍🏻
Khadra Abdirashid Ayaan M Egeh Emina Rahic
Emel Ulusoy
O
Felek Doyu
Laura BrunoCea
Imran Doyu
Helin Kartal
Filisia Mikayel
Camila Pimentel
Metin Yilmaz
معتز الأسعد
Ece-Melissa Turgut mor
Jillar
Burim Duraku
Roni Tumturk dunder i byn
Nuray Kizilkaya Aynur Kizilkaya
Ayten Köylu
زور جوانه
Josefin Ringqvist
Nejjjj 😐
Bläääääää!!!!!
Suuuuger !
The Rocking Pots 😀 😀 😀 😀 😀 💖💖💖💖💖💖🎶🎶🎶🎶
Oj
Milad Burhan
Suelena Runsjö. Kerstin Rydergren
Jim Olofsson
Eric Sernfalk
Kungsträdgården Sthlm
Helena 😍🎉☀️
Superbe !! <3
Trifa 😙
YÄÄH Leon
Eric Westergren
Kristofer Pihlanker
Noelle Barton
Tommy
Yasmine Embretsen
Rita Allawardian
Meyav Alhidaja
Nawal Haseeb
#FRANSFIRST
Nicole Söderqvist Sandin
Att ersätta mänsklig värme med kall maskin logik lockar då inte mig
Kristoffer Noren
Linnéa Björndahl
Clara Berfin Ronak !!!!!
Ezgi Kucukgöl
Sophia Simoes
Meiko 😂
Angela Gomez
Daniella Lerche
Sofie Fahlin 💁🏼😍
Cissi Kraft
Jóhanna  tf why June first
Zasmine Rubell
Angelica Olofsson
Saga Sedelius
Emilia Spångberg venne om du sett
Conny Thynell Veronica Thynell!!!!!!
Rebecca Ekeroth
Stina Umegård
Juliette Pisto
Jag är inte säker om min blev inskickad, ska jag göra om?
Elvira Westin
Elma 4 u
Hedda Waldenström
Gabriella Levinsson Sjögren ❤
Alexandra Khadija Iich
Kan vi göra det här sedan??❤️❤️ Ann T Ottestig
Inte till Symbian?
Beatrice Lundin 😂
Rebecka Chamoun
ser ut som 5:an 😳
Kalle Skoog 👏🏼
Pernilla Lindstrand
Abboud Omeirat
Lindsey Wu
Soha Abdul Rahim
Mange Falic
Klara Varvne
Susanne Lindh
Henrik Hästbacka
Eric Moisio
Lena Gustavsson
Paul Hauki
4"... Är det 2009?
Lucas Perkhed
Bra initiativ 👍🏻.
Flott!
Bra initiativ <3
Guro Myrkaskog
Sliva Hajo
Bardia Mahjoor
Fick min nyss :)
Jennie Anderberg
Najwan det var detta jag menade.
LG G5 då??
Jian Emoi
Assma Mega 🎉
Sabahudin Sapko Kaltak
Hayat Ibtissam :)
Selam Fessehaye
oskönt att det inte fanns golden circle
Maja Gyldner
Jan Gyldner
Vad innebär demokratisk front row? Och vad är Cardboard?
<3
<3
<3
Min Man,
Jag vill kombinera lugn och avslappning med fart, fläkt och hjärtklappning...
Med min @dator
Tony Ting Tong Lindstrom för man vet aldrig var man hamnar.....harem :)
Bashar Dlale
Johnny Von Tanzi yolo
Annelie Levin 😉
Dr
Frasse
na make a jigsaw
Sirwa Yousif som ska ha en sånt😊
Margareta Tjernlund 😀
Sander Waleed Kajo har inge 😆😆
Fadi Amir
Defrim Feka
😬 Janet Löb.
när kommer Huawei Mate 8 ?
Grattis 👌🎉

Counts


In [10]:
res_counts = bw.counts(texts_tele2)
pprint(res_counts)


[{'count': 403,
  'variants': [{'count': 205, 'word': 'Tele2'},
               {'count': 65, 'word': 'TELE2'},
               {'count': 133, 'word': 'tele2'}],
  'word': 'tele2'},
 {'count': 324,
  'variants': [{'count': 53, 'word': 'Ni'},
               {'count': 5, 'word': 'NI'},
               {'count': 266, 'word': 'ni'}],
  'word': 'ni'},
 {'count': 303,
  'variants': [{'count': 93, 'word': 'tack'},
               {'count': 9, 'word': 'TACK'},
               {'count': 201, 'word': 'Tack'}],
  'word': 'tack'},
 {'count': 248,
  'variants': [{'count': 2, 'word': 'mobilerna'},
               {'count': 7, 'word': 'mobilt'},
               {'count': 85, 'word': 'mobiler'},
               {'count': 122, 'word': 'mobil'},
               {'count': 1, 'word': 'mobils'},
               {'count': 1, 'word': 'MOBIL'},
               {'count': 24, 'word': 'mobilen'},
               {'count': 1, 'word': 'Mobile'},
               {'count': 4, 'word': 'mobila'},
               {'count': 1, 'word': 'Mobilen'}],
  'word': 'mobil'},
 {'count': 233,
  'variants': [{'count': 6, 'word': 'Er'},
               {'count': 4, 'word': 'ER'},
               {'count': 223, 'word': 'er'}],
  'word': 'er'},
 {'count': 232,
  'variants': [{'count': 98, 'word': 'respekt'},
               {'count': 129, 'word': 'Respekt'},
               {'count': 3, 'word': 'respekten'},
               {'count': 2, 'word': 'RESPEKT'}],
  'word': 'respekt'},
 {'count': 192,
  'variants': [{'count': 1, 'word': 'Telefoner'},
               {'count': 3, 'word': 'TELEFON'},
               {'count': 40, 'word': 'telefonen'},
               {'count': 139, 'word': 'telefon'},
               {'count': 9, 'word': 'telefoner'}],
  'word': 'telefon'},
 {'count': 180,
  'variants': [{'count': 1, 'word': 'KUND'},
               {'count': 1, 'word': 'kunders'},
               {'count': 71, 'word': 'kund'},
               {'count': 2, 'word': 'kunden'},
               {'count': 1, 'word': 'Kunderna'},
               {'count': 100, 'word': 'kunder'},
               {'count': 4, 'word': 'kunderna'}],
  'word': 'kund'},
 {'count': 140,
  'variants': [{'count': 1, 'word': 'Reklamen'},
               {'count': 71, 'word': 'reklam'},
               {'count': 63, 'word': 'reklamer'},
               {'count': 5, 'word': 'reklamen'}],
  'word': 'reklam'},
 {'count': 125, 'variants': [{'count': 125, 'word': '3'}], 'word': '3'},
 {'count': 109, 'variants': [{'count': 109, 'word': '2'}], 'word': '2'},
 {'count': 102,
  'variants': [{'count': 12, 'word': 'folket'},
               {'count': 2, 'word': 'folks'},
               {'count': 1, 'word': 'Folk'},
               {'count': 87, 'word': 'folk'}],
  'word': 'folk'},
 {'count': 98,
  'variants': [{'count': 12, 'word': 'O'}, {'count': 86, 'word': 'o'}],
  'word': 'o'},
 {'count': 95,
  'variants': [{'count': 75, 'word': 'butiker'},
               {'count': 5, 'word': 'butiken'},
               {'count': 11, 'word': 'butik'},
               {'count': 3, 'word': 'butikerna'},
               {'count': 1, 'word': 'BUTIK'}],
  'word': 'butik'},
 {'count': 90,
  'variants': [{'count': 2, 'word': 'INNAN'},
               {'count': 3, 'word': 'Innan'},
               {'count': 85, 'word': 'innan'}],
  'word': 'innan'},
 {'count': 87,
  'variants': [{'count': 1, 'word': 'spenderat'},
               {'count': 9, 'word': 'spenderar'},
               {'count': 10, 'word': 'spendera'},
               {'count': 65, 'word': 'Spenderar'},
               {'count': 2, 'word': 'spenderas'}],
  'word': 'spendera'},
 {'count': 86,
  'variants': [{'count': 5, 'word': 'pengarna'},
               {'count': 81, 'word': 'pengar'}],
  'word': 'peng'},
 {'count': 85,
  'variants': [{'count': 1, 'word': 'Snäll'},
               {'count': 2, 'word': 'snäll'},
               {'count': 3, 'word': 'snällt'},
               {'count': 3, 'word': 'Snälla'},
               {'count': 73, 'word': 'snälla'},
               {'count': 1, 'word': 'snällaste'},
               {'count': 2, 'word': 'SNÄLLA'}],
  'word': 'snäll'},
 {'count': 85,
  'variants': [{'count': 1, 'word': 'beställda'},
               {'count': 7, 'word': 'beställer'},
               {'count': 17, 'word': 'Beställde'},
               {'count': 1, 'word': 'beställdes'},
               {'count': 1, 'word': 'Beställ'},
               {'count': 1, 'word': 'BESTÄLLA'},
               {'count': 2, 'word': 'beställ'},
               {'count': 19, 'word': 'beställa'},
               {'count': 23, 'word': 'beställde'},
               {'count': 13, 'word': 'beställt'}],
  'word': 'beställa'},
 {'count': 85,
  'variants': [{'count': 1, 'word': 'sålda'},
               {'count': 76, 'word': 'säljer'},
               {'count': 2, 'word': 'sålt'},
               {'count': 5, 'word': 'sälja'},
               {'count': 1, 'word': 'Sälj'}],
  'word': 'sälja'},
 {'count': 84,
  'variants': [{'count': 2, 'word': 'Köp'},
               {'count': 7, 'word': 'köpet'},
               {'count': 74, 'word': 'köp'},
               {'count': 1, 'word': 'KÖP'}],
  'word': 'köp'},
 {'count': 79, 'variants': [{'count': 79, 'word': '7'}], 'word': '7'},
 {'count': 76,
  'variants': [{'count': 6, 'word': 'AL'}, {'count': 70, 'word': 'Al'}],
  'word': 'al'},
 {'count': 76,
  'variants': [{'count': 7, 'word': 'Jul'},
               {'count': 2, 'word': 'julen'},
               {'count': 67, 'word': 'jul'}],
  'word': 'jul'},
 {'count': 75,
  'variants': [{'count': 1, 'word': 'ALLTID'},
               {'count': 68, 'word': 'alltid'},
               {'count': 6, 'word': 'Alltid'}],
  'word': 'alltid'},
 {'count': 74,
  'variants': [{'count': 1, 'word': 'Lurar'},
               {'count': 1, 'word': 'lurat'},
               {'count': 4, 'word': 'lurad'},
               {'count': 68, 'word': 'lurar'}],
  'word': 'lura'},
 {'count': 73,
  'variants': [{'count': 41, 'word': 'All'}, {'count': 32, 'word': 'all'}],
  'word': 'all'},
 {'count': 73,
  'variants': [{'count': 31, 'word': 'Tele'},
               {'count': 4, 'word': 'TELE'},
               {'count': 38, 'word': 'tele'}],
  'word': 'tele'},
 {'count': 73,
  'variants': [{'count': 10, 'word': 'kära'}, {'count': 63, 'word': 'Kära'}],
  'word': 'kära'},
 {'count': 72,
  'variants': [{'count': 72, 'word': 'trasiga'}],
  'word': 'trasig'},
 {'count': 71,
  'variants': [{'count': 67, 'word': 'dom'}, {'count': 4, 'word': 'Dom'}],
  'word': 'dom'},
 {'count': 70,
  'variants': [{'count': 1, 'word': 'behövde'},
               {'count': 3, 'word': 'Behöver'},
               {'count': 15, 'word': 'behöva'},
               {'count': 48, 'word': 'behöver'},
               {'count': 1, 'word': 'BEHÖVA'},
               {'count': 2, 'word': 'behövt'}],
  'word': 'behöva'},
 {'count': 67,
  'variants': [{'count': 63, 'word': 'LITA'}, {'count': 4, 'word': 'Lita'}],
  'word': 'lita'},
 {'count': 67,
  'variants': [{'count': 3, 'word': 'Tele2s'}, {'count': 64, 'word': 'tele2s'}],
  'word': 'tele2s'},
 {'count': 67,
  'variants': [{'count': 4, 'word': 'film'}, {'count': 63, 'word': 'filmer'}],
  'word': 'film'},
 {'count': 66,
  'variants': [{'count': 63, 'word': 'ögonen'}, {'count': 3, 'word': 'ögon'}],
  'word': 'öga'},
 {'count': 64,
  'variants': [{'count': 1, 'word': 'mitten'},
               {'count': 58, 'word': 'mitt'},
               {'count': 2, 'word': 'MITT'},
               {'count': 3, 'word': 'Mitt'}],
  'word': 'mitt'},
 {'count': 63,
  'variants': [{'count': 9, 'word': 'ringde'},
               {'count': 14, 'word': 'ringer'},
               {'count': 27, 'word': 'ringa'},
               {'count': 6, 'word': 'ringt'},
               {'count': 2, 'word': 'Ringer'},
               {'count': 5, 'word': 'Ringde'}],
  'word': 'ringa'},
 {'count': 63,
  'variants': [{'count': 11, 'word': 'samsung'},
               {'count': 48, 'word': 'Samsung'},
               {'count': 4, 'word': 'Samsungs'}],
  'word': 'Samsung'},
 {'count': 63,
  'variants': [{'count': 8, 'word': 'veckan'},
               {'count': 30, 'word': 'veckor'},
               {'count': 22, 'word': 'vecka'},
               {'count': 2, 'word': 'veckors'},
               {'count': 1, 'word': 'veckas'}],
  'word': 'vecka'},
 {'count': 63,
  'variants': [{'count': 1, 'word': 'Köpt'},
               {'count': 1, 'word': 'köpts'},
               {'count': 2, 'word': 'köpte'},
               {'count': 1, 'word': 'Köper'},
               {'count': 12, 'word': 'köper'},
               {'count': 2, 'word': 'Köpte'},
               {'count': 35, 'word': 'köpa'},
               {'count': 9, 'word': 'köpt'}],
  'word': 'köpa'},
 {'count': 63,
  'variants': [{'count': 1, 'word': 'KÄRLEK'},
               {'count': 22, 'word': 'Kärlek'},
               {'count': 38, 'word': 'kärlek'},
               {'count': 2, 'word': 'kärleken'}],
  'word': 'kärlek'},
 {'count': 63,
  'variants': [{'count': 63, 'word': 'försiktigt'}],
  'word': 'försiktig'},
 {'count': 58,
  'variants': [{'count': 2, 'word': 'Vann'},
               {'count': 12, 'word': 'vann'},
               {'count': 5, 'word': 'vunnit'},
               {'count': 32, 'word': 'vinna'},
               {'count': 7, 'word': 'vinner'}],
  'word': 'vinna'},
 {'count': 55,
  'variants': [{'count': 27, 'word': 'varför'},
               {'count': 27, 'word': 'Varför'},
               {'count': 1, 'word': 'VARFÖR'}],
  'word': 'varför'},
 {'count': 52,
  'variants': [{'count': 47, 'word': 'Hej'},
               {'count': 4, 'word': 'hej'},
               {'count': 1, 'word': 'HEJ'}],
  'word': 'hej'},
 {'count': 52,
  'variants': [{'count': 23, 'word': 'bort'},
               {'count': 3, 'word': 'bör'},
               {'count': 23, 'word': 'borde'},
               {'count': 3, 'word': 'Borde'}],
  'word': 'böra'},
 {'count': 51,
  'variants': [{'count': 2, 'word': 'Dig'}, {'count': 49, 'word': 'dig'}],
  'word': 'dig'},
 {'count': 50,
  'variants': [{'count': 14, 'word': 'kvällen'},
               {'count': 1, 'word': 'Kvällen'},
               {'count': 4, 'word': 'kvällar'},
               {'count': 1, 'word': 'kvällarna'},
               {'count': 30, 'word': 'kväll'}],
  'word': 'kväll'},
 {'count': 49,
  'variants': [{'count': 13, 'word': 'vänner'},
               {'count': 1, 'word': 'vännerna'},
               {'count': 33, 'word': 'vän'},
               {'count': 2, 'word': 'vännen'}],
  'word': 'vän'},
 {'count': 49,
  'variants': [{'count': 49, 'word': 'Andersson'}],
  'word': 'Andersson'},
 {'count': 49,
  'variants': [{'count': 8, 'word': 'Va'},
               {'count': 39, 'word': 'va'},
               {'count': 2, 'word': 'VA'}],
  'word': 'va'},
 {'count': 48,
  'variants': [{'count': 1, 'word': 'FINT'},
               {'count': 30, 'word': 'fint'},
               {'count': 17, 'word': 'Fint'}],
  'word': 'fint'},
 {'count': 48,
  'variants': [{'count': 13, 'word': 'Hoppas'},
               {'count': 2, 'word': 'hoppats'},
               {'count': 31, 'word': 'hoppas'},
               {'count': 2, 'word': 'HOPPAS'}],
  'word': 'hoppas'},
 {'count': 48,
  'variants': [{'count': 1, 'word': 'Abonnemanget'},
               {'count': 1, 'word': 'ABONNEMANG'},
               {'count': 39, 'word': 'abonnemang'},
               {'count': 1, 'word': 'abonnemangen'},
               {'count': 6, 'word': 'abonnemanget'}],
  'word': 'abonnemang'},
 {'count': 47,
  'variants': [{'count': 2, 'word': 'väntade'},
               {'count': 6, 'word': 'väntar'},
               {'count': 22, 'word': 'vänta'},
               {'count': 1, 'word': 'VÄNTA'},
               {'count': 8, 'word': 'väntat'},
               {'count': 7, 'word': 'Väntar'},
               {'count': 1, 'word': 'väntas'}],
  'word': 'vänta'},
 {'count': 46,
  'variants': [{'count': 1, 'word': 'iPHONE'},
               {'count': 26, 'word': 'iphone'},
               {'count': 5, 'word': 'IPhone'},
               {'count': 14, 'word': 'Iphone'}],
  'word': 'iphone'},
 {'count': 45,
  'variants': [{'count': 5, 'word': 'biljett'},
               {'count': 1, 'word': 'biljetten'},
               {'count': 27, 'word': 'biljetter'},
               {'count': 11, 'word': 'biljetterna'},
               {'count': 1, 'word': 'Biljetter'}],
  'word': 'biljett'},
 {'count': 45,
  'variants': [{'count': 12, 'word': 'underbar'},
               {'count': 2, 'word': 'Underbar'},
               {'count': 6, 'word': 'underbara'},
               {'count': 4, 'word': 'Underbara'},
               {'count': 10, 'word': 'Underbart'},
               {'count': 11, 'word': 'underbart'}],
  'word': 'underbar'},
 {'count': 45,
  'variants': [{'count': 3, 'word': 'Henne'}, {'count': 42, 'word': 'henne'}],
  'word': 'henne'},
 {'count': 45,
  'variants': [{'count': 5, 'word': 'operatörerna'},
               {'count': 14, 'word': 'operatörer'},
               {'count': 2, 'word': 'operatörs'},
               {'count': 22, 'word': 'operatör'},
               {'count': 2, 'word': 'operatören'}],
  'word': 'operatör'},
 {'count': 44,
  'variants': [{'count': 1, 'word': 'Dålig'},
               {'count': 4, 'word': 'Dåligt'},
               {'count': 18, 'word': 'dåligt'},
               {'count': 1, 'word': 'DÅLIGT'},
               {'count': 2, 'word': 'sämst'},
               {'count': 3, 'word': 'sämre'},
               {'count': 4, 'word': 'dåliga'},
               {'count': 9, 'word': 'dålig'},
               {'count': 2, 'word': 'Sämst'}],
  'word': 'dålig'},
 {'count': 44,
  'variants': [{'count': 1, 'word': 'fansens'},
               {'count': 2, 'word': 'fansen'},
               {'count': 28, 'word': 'fan'},
               {'count': 6, 'word': 'fans'},
               {'count': 7, 'word': 'Fan'}],
  'word': 'fan'},
 {'count': 44, 'variants': [{'count': 44, 'word': 'iPhone'}], 'word': 'iPhone'},
 {'count': 43,
  'variants': [{'count': 2, 'word': 'Idag'}, {'count': 41, 'word': 'idag'}],
  'word': 'idag'},
 {'count': 42,
  'variants': [{'count': 9, 'word': 'Håller'},
               {'count': 2, 'word': 'hållet'},
               {'count': 1, 'word': 'hållit'},
               {'count': 7, 'word': 'hålla'},
               {'count': 19, 'word': 'håller'},
               {'count': 4, 'word': 'höll'}],
  'word': 'hålla'},
 {'count': 42,
  'variants': [{'count': 2, 'word': 'Daniels'},
               {'count': 40, 'word': 'Daniel'}],
  'word': 'Daniel'},
 {'count': 41,
  'variants': [{'count': 36, 'word': 'mina'}, {'count': 5, 'word': 'Mina'}],
  'word': 'mina'},
 {'count': 41,
  'variants': [{'count': 11, 'word': 'priset'},
               {'count': 16, 'word': 'pris'},
               {'count': 8, 'word': 'priser'},
               {'count': 1, 'word': 'Pris'},
               {'count': 4, 'word': 'priserna'},
               {'count': 1, 'word': 'Priset'}],
  'word': 'pris'},
 {'count': 40,
  'variants': [{'count': 25, 'word': 'liv'},
               {'count': 12, 'word': 'livet'},
               {'count': 1, 'word': 'livets'},
               {'count': 2, 'word': 'Liv'}],
  'word': 'liv'},
 {'count': 40,
  'variants': [{'count': 35, 'word': 'bäst'},
               {'count': 4, 'word': 'Bäst'},
               {'count': 1, 'word': 'BÄST'}],
  'word': 'bäst'},
 {'count': 40,
  'variants': [{'count': 1, 'word': 'Bytte'},
               {'count': 2, 'word': 'Byter'},
               {'count': 3, 'word': 'bytte'},
               {'count': 1, 'word': 'byts'},
               {'count': 20, 'word': 'byta'},
               {'count': 4, 'word': 'byt'},
               {'count': 3, 'word': 'bytt'},
               {'count': 1, 'word': 'Byt'},
               {'count': 5, 'word': 'byter'}],
  'word': 'byta'},
 {'count': 40,
  'variants': [{'count': 17, 'word': 'comviq'},
               {'count': 23, 'word': 'Comviq'}],
  'word': 'comviq'},
 {'count': 40,
  'variants': [{'count': 1, 'word': 'riktiga'},
               {'count': 6, 'word': 'riktig'},
               {'count': 28, 'word': 'riktigt'},
               {'count': 5, 'word': 'Riktigt'}],
  'word': 'riktig'},
 {'count': 39,
  'variants': [{'count': 5, 'word': 'satt'},
               {'count': 2, 'word': 'satte'},
               {'count': 10, 'word': 'sätta'},
               {'count': 22, 'word': 'sätter'}],
  'word': 'sätta'},
 {'count': 39,
  'variants': [{'count': 6, 'word': 'skiten'},
               {'count': 3, 'word': 'Skit'},
               {'count': 1, 'word': 'SKITEN'},
               {'count': 29, 'word': 'skit'}],
  'word': 'skit'},
 {'count': 39,
  'variants': [{'count': 37, 'word': 'era'}, {'count': 2, 'word': 'Era'}],
  'word': 'era'},
 {'count': 39,
  'variants': [{'count': 1, 'word': 'nöjde'},
               {'count': 9, 'word': 'nöjda'},
               {'count': 29, 'word': 'nöjd'}],
  'word': 'nöjd'},
 {'count': 39,
  'variants': [{'count': 30, 'word': 'verkligen'},
               {'count': 8, 'word': 'Verkligen'},
               {'count': 1, 'word': 'VERKLIGEN'}],
  'word': 'verkligen'},
 {'count': 39,
  'variants': [{'count': 5, 'word': 'hänt'},
               {'count': 4, 'word': 'hända'},
               {'count': 6, 'word': 'hände'},
               {'count': 24, 'word': 'händer'}],
  'word': 'hända'},
 {'count': 39,
  'variants': [{'count': 13, 'word': 'galaxy'},
               {'count': 26, 'word': 'Galaxy'}],
  'word': 'galaxy'},
 {'count': 39,
  'variants': [{'count': 14, 'word': 'edge'}, {'count': 25, 'word': 'Edge'}],
  'word': 'edge'},
 {'count': 38,
  'variants': [{'count': 7, 'word': 'Älskar'},
               {'count': 1, 'word': 'älska'},
               {'count': 2, 'word': 'ÄLSKAR'},
               {'count': 28, 'word': 'älskar'}],
  'word': 'älska'},
 {'count': 37,
  'variants': [{'count': 1, 'word': 'problemen'},
               {'count': 1, 'word': 'PROBLEM'},
               {'count': 1, 'word': 'Problem'},
               {'count': 7, 'word': 'problemet'},
               {'count': 1, 'word': 'problems'},
               {'count': 26, 'word': 'problem'}],
  'word': 'problem'},
 {'count': 37,
  'variants': [{'count': 1, 'word': 'Trevligt'},
               {'count': 4, 'word': 'trevliga'},
               {'count': 4, 'word': 'Trevlig'},
               {'count': 22, 'word': 'trevlig'},
               {'count': 6, 'word': 'trevligt'}],
  'word': 'trevlig'},
 {'count': 36,
  'variants': [{'count': 2, 'word': 'Världen'},
               {'count': 2, 'word': 'värld'},
               {'count': 13, 'word': 'världen'},
               {'count': 3, 'word': 'Världens'},
               {'count': 16, 'word': 'världens'}],
  'word': 'värld'},
 {'count': 36,
  'variants': [{'count': 35, 'word': 'Anna'}, {'count': 1, 'word': 'anna'}],
  'word': 'Anna'},
 {'count': 36,
  'variants': [{'count': 12, 'word': 'skickar'},
               {'count': 15, 'word': 'skicka'},
               {'count': 2, 'word': 'skickades'},
               {'count': 1, 'word': 'Skickar'},
               {'count': 2, 'word': 'skickas'},
               {'count': 3, 'word': 'skickats'},
               {'count': 1, 'word': 'Skicka'}],
  'word': 'skicka'},
 {'count': 36,
  'variants': [{'count': 2, 'word': 'Fin'},
               {'count': 2, 'word': 'finaste'},
               {'count': 18, 'word': 'fina'},
               {'count': 3, 'word': 'Finaste'},
               {'count': 11, 'word': 'fin'}],
  'word': 'fin'},
 {'count': 35,
  'variants': [{'count': 27, 'word': 'Adele'},
               {'count': 2, 'word': 'ADELE'},
               {'count': 3, 'word': 'adele'},
               {'count': 3, 'word': 'Adeles'}],
  'word': 'Adele'},
 {'count': 35,
  'variants': [{'count': 4, 'word': 'Ville'},
               {'count': 8, 'word': 'ville'},
               {'count': 21, 'word': 'vilja'},
               {'count': 2, 'word': 'velat'}],
  'word': 'vilja'},
 {'count': 35,
  'variants': [{'count': 7, 'word': 'funkade'},
               {'count': 1, 'word': 'funkat'},
               {'count': 3, 'word': 'Funkar'},
               {'count': 2, 'word': 'funka'},
               {'count': 1, 'word': 'Funkade'},
               {'count': 21, 'word': 'funkar'}],
  'word': 'funka'},
 {'count': 35, 'variants': [{'count': 35, 'word': 'ens'}], 'word': 'ens'},
 {'count': 35,
  'variants': [{'count': 3, 'word': 'SMS'},
               {'count': 2, 'word': 'Sms'},
               {'count': 30, 'word': 'sms'}],
  'word': 'sms'},
 {'count': 34,
  'variants': [{'count': 13, 'word': 'Ja'}, {'count': 21, 'word': 'ja'}],
  'word': 'ja'},
 {'count': 34,
  'variants': [{'count': 13, 'word': 'vilken'},
               {'count': 21, 'word': 'Vilken'}],
  'word': 'vilken'},
 {'count': 34,
  'variants': [{'count': 5, 'word': 'små'},
               {'count': 8, 'word': 'liten'},
               {'count': 8, 'word': 'mindre'},
               {'count': 13, 'word': 'lilla'}],
  'word': 'liten'},
 {'count': 34, 'variants': [{'count': 34, 'word': 'Ali'}], 'word': 'Ali'},
 {'count': 34,
  'variants': [{'count': 34, 'word': 'Nilsson'}],
  'word': 'Nilsson'},
 {'count': 34,
  'variants': [{'count': 6, 'word': 'Väldigt'},
               {'count': 26, 'word': 'väldigt'},
               {'count': 2, 'word': 'väldig'}],
  'word': 'väldig'}]

Entities

Extract named entities from docs. You will get a list of entities for each doc.

Entities can be 'geo', 'person', 'org', or 'heuristics'.

Heuristics means that entities that we have seen before are returned, even though we do not know what kind of entity it is.


In [11]:
docs = ['De två största städerna i Sverige är Stockholm och Göteborg',
        'Donald Trump är Barack Obamas efterträdare',
        'En stad i Frankrike är Lyon']

In [12]:
bw.entities(docs)


Out[12]:
[[{'entity': 'Stockholm', 'type': 'geo', 'variants': ['Stockholm']},
  {'entity': 'Sverige', 'type': 'geo', 'variants': ['Sverige']},
  {'entity': 'Göteborg', 'type': 'geo', 'variants': ['Göteborg']}],
 [{'entity': 'Barack Obama', 'type': 'person', 'variants': ['Barack Obamas']},
  {'entity': 'Donald Trump', 'type': 'person', 'variants': ['Donald Trump']}],
 [{'entity': 'Frankrike', 'type': 'geo', 'variants': ['Frankrike']},
  {'entity': 'Lyon', 'type': 'heuristics', 'variants': ['Lyon']}]]

Sentiment


In [13]:
docs_sentiment = [
    'Nej, det här var inte alls bra',
    'Detta är en bra mening, som visar på en helt fantastisk fantasi hos författaren'
]
res_sentiment = bw.sentiment(docs_sentiment)
pprint(res_sentiment)


[-0.3562071871080222, 1]

Topics


In [14]:
docs_topics = [
    'De två största städerna i Sverige är Stockholm och Göteborg, men Rävlanda är mest creddig',
    'Donald Trump är Barack Obamas efterträdare',
    'Jag gillar äpplen och päron och jag kan jämföra dem']
res_topics = bw.topics(docs_topics)
pprint(res_topics)


[[{'score': 3.0, 'topic': 'Stad'},
  {'score': 3.0, 'topic': 'Göteborg'},
  {'score': 2, 'topic': 'Städer'}],
 [{'score': 2, 'topic': 'Trump'},
  {'score': 1.0, 'topic': 'Byggnadstyper'},
  {'score': 1.0, 'topic': 'Amerikanska släkter'}],
 [{'score': 3.0, 'topic': 'Äpplen'},
  {'score': 2, 'topic': 'Päron'},
  {'score': 2.0, 'topic': 'Rosväxter'}]]

Wordcloud


In [15]:
cloud = bw.wordcloud(bw.counts(texts_tele2))

In [16]:
cloud


Out[16]:
{'url': 'https://bookworm.crawlica.com/v1/sv/wordcloud/8469197d-ce6d-49d6-9f05-e43cb704da8f'}

In [17]:
from IPython.display import Image
from IPython.core.display import HTML 
Image(url= cloud['url'])


Out[17]: