This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["tench, Tinca tinca", | |
"goldfish, Carassius auratus", | |
"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", | |
"tiger shark, Galeocerdo cuvieri", | |
"hammerhead, hammerhead shark", | |
"electric ray, crampfish, numbfish, torpedo", | |
"stingray", | |
"cock", | |
"hen", | |
"ostrich, Struthio camelus", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sonnet as snt | |
import tensorflow as tf | |
LOG_DIR = '/tmp/' | |
class MainModule(snt.AbstractModule): | |
def __init__(self, in_build): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sonnet as snt | |
import tensorflow as tf | |
class SubmoduleA(snt.AbstractModule): | |
def __init__(self, name='submodule_a'): | |
super().__init__(name=name) | |
def _build(self): | |
return tf.Variable(tf.constant(1.0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"productos": [ | |
{ | |
"nombre": "Aceite de girasol - Óptimo", | |
"codigo": "1", | |
"categoria": "Alimentos", | |
"attconsumidor": "2309 3336 ", | |
"codebarra": "{'7730132001165'}", | |
"contenido": "900.0", | |
"tipo": "Girasol", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ArrayOfResult xmlns="http://lookup.dbpedia.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Result> | |
<Label>http://es.dbpedia.org/resource/Botanische Zeitung (Berlin)</Label> | |
<URI>http://es.dbpedia.org/resource/Botanische_Zeitung_(Berlin)</URI> | |
<Description>Botanische Zeitung (Berlin), (abreviado Bot. Zeitung (Berlin)), fue una revista ilustrada con descripciones botánicas que fue editada en Alemania. Se publicaron 50 números en los años 1843-1892. Fue reemplazada por Botanische Zeitung. 2. Abteilung.</Description> | |
<Classes><Class><Label>magazine</Label><URI>http://dbpedia.org/ontology/Magazine</URI></Class></Classes> | |
<Categories><Category><Label>http://es.dbpedia.org/resource/Categoría:Revistas científicas en alemán</Label><URI>http://es.dbpedia.org/resource/Categoría:Revistas_científicas_en_alemán</URI></Category><Category><Label>http://es.dbpedia.org/resource/Categoría:Revist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import etree | |
from elasticsearch.helpers import scan | |
from elasticsearch import Elasticsearch | |
from multiprocessing import Pool | |
import bz2 | |
import gensim | |
import itertools | |
import logging | |
import nltk | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import etree | |
import bz2 | |
import gensim | |
import itertools | |
import logging | |
import nltk | |
import os | |
import re | |
import string | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST montevideo/ | |
# Importante crear el mapping antes para que las "coordinates" las tome como geopoint. | |
# Tambien utilizo not_analyzed en varios campos de texto para no procesaros y agregarlos con valores exactos. | |
PUT montevideo/_mapping/multa | |
{ | |
"multa": { | |
"properties": { | |
"coordinates": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
import base64 | |
from trubrain.settings import ( | |
ANON_TRACKING_COOKIE, | |
ANON_TRACKING_COOKIE_MAX_AGE | |
) | |
class AnonTrackingMiddleware(object): | |
salt = 'anon_tracking' |
NewerOlder