gnarvaja/quesedijo


Nubes de palabras temporales y comparativas

Language: JavaScript


quesedijo

Nubes de palabras temporales y comparativas

Entradas

  • Fuentes
    • Nombre
    • Listas de documentos
      • Documento
        • Fecha
        • Campos key, valor
  • Ponderaciones: lista de (campo, peso)
  • Tokenizer
  • Agrupación temporal (día, semana, mes, año)

def calculate_source_cloud(documents): source_tag_cloud = {}

for timegroup, documents in groupby(source.get_document(), key=group_fn):
    tag_cloud = {}
    for doc in documents:
        for field, value in documents.get_fields():
            tokens = tokenizer(value)
            for token, count in tokens:
                tag_cloud[token] = tag_cloud.get(token, 0) + field_weights[field] * count
    source_tag_cloud[timegroup] = tag_cloud
return source_tag_cloud

URLs de ejemplo

De RSS:

Project Statistics

Sourcerank 2
Repository Size 633 KB
Stars 0
Forks 0
Watchers 2
Open issues 0
Dependencies 0
Contributors 2
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

gnarvaja Nicolas Berger

Something wrong with this page? Make a suggestion

Last synced: 2017-11-14 13:47:32 UTC

Login to resync this repository