Template for a Dataflow Flex Template in Python

This repository contains a template for a Dataflow Flex Template written in Python that can easily be used to build Dataflow jobs to run in STOIX using Dataflow runner. The code is based on the same example data as Google Cloud Python Quickstart, “King Lear” which is a tragedy written by William Shakespeare. The Dataflow job reads the file content, count occurencies of each word and inserts it to a BigQuery table. We also add the schedule date to the […]

Read more

Send tweets to a Telegram channel with python

Envía los tweets de cuentas previamente seleccionadas a un canal de Telegram cada un tiempo predefinido time_tx. TOKEN : token del bot en Telegram. ID_CANAL : id del canal en Telegram donde se publicarán los tweets. ID_C_LOG : id del canal en Telegram donde se registrarán los logs. ID_ADMIN : id del administrador del bot (solo él tendrá acceso al control del mismo). DATABASE_URL : url de la base de datos de postgresql. /nc cuenta_de_twitterEjemplo: /nc NASA -Muestra información de […]

Read more

Experience macOS just like before

A python program with an Objective-C GUI for building and booting OpenCore on both legacy and modern Macs, see our in-depth Guide for more information. Supported features: System Integrity Protection, FileVault 2, .im4m Secure Boot and Vaulting WPA Wifi and Personal Hotspot support Native OTA OS DELTA updates on all Macs Recovery OS, Safe Mode and Single-user Mode booting Zero firmware patching required (ie. APFS ROM patching) GPU Switching on MacBook Pro models (2012 and newer) Note: Only clean-installs and […]

Read more

Build a Command-Line To-Do App With Python and Typer

Building an application to manage your to-do list can be an interesting project when you’re learning a new programming language or trying to take your skills to the next level. In this tutorial, you’ll build a functional to-do application for the command line using Python and Typer, which is a relatively young library for creating powerful command-line interface (CLI) applications in almost no time. With a project like this, you’ll apply a wide set of core programming skills while building […]

Read more

Multi-Modal Open-Domain Dialogue

Abstract Recent work in open-domain conversational agents has demonstrated that significant improvements in humanness and user preference can be achieved via massive scaling in both pre-training data and model size (Adiwardana et al., 2020; Roller et al., 2020). However, if we want to build agents with human-like abilities, we must expand beyond handling just text. A particularly important topic is the ability to see images and communicate about what is perceived. With the goal of getting humans to engage in […]

Read more

Retrieval Augmentation Reduces Hallucination in Conversation

Abstract Despite showing increasingly human-like conversational abilities, state-of-the-art dialogue models often suffer from factual incorrectness and hallucination of knowledge. In this work we explore the use of neural-retrieval-in-the-loop architectures – recently shown to be effective in open-domain QA – for knowledge-grounded dialogue, a task that is arguably more challenging as it requires querying based on complex multi-turn dialogue context and generating conversationally coherent responses. We study various types of architectures with multiple components – retrievers, rankers, and encoder-decoders – with […]

Read more

Gradient-based Adversarial Attacks against Text Transformers

Abstract We propose the first general-purpose gradient-based adversarial attack against transformer models. Instead of searching for a single adversarial example, we search for a distribution of adversarial examples parameterized by a continuous-valued matrix, hence enabling gradient-based optimization. We empirically demonstrate that our white-box attack attains state-of-the-art attack performance on a variety of natural language tasks, outperforming prior work in terms of adversarial success rate with matching imperceptibility as per automated and human evaluation. Furthermore, we show that a powerful black-box […]

Read more
1 413 414 415 416 417 974