Issue #136 – Neural Machine Translation without Embeddings

28 Jun21 Issue #136 – Neural Machine Translation without Embeddings Author: Dr. Jingyi Han, Machine Translation Scientist @ Language Weaver Introduction Nowadays, Byte Pair Encoding (BPE) has become one of the most commonly used tokenization strategies due to its universality and effectiveness in handling rare words. Although many previous works show that subword models with embedding layers in general achieve more stable and competitive results in neural machine translation (NMT), character-based (see issue #60) and Byte-based subword (see issue #64) […]

Read more

109 Python Problems for CCPS 109

PythonProblems This repository contains the problem specifications, the automated tester and the necessary data files for the graded lab problems for the course CCPS 109 Computer Science I, as taught by Ilkka Kokkarinen for the Chang School of Continuing Education, Ryerson University, Toronto, Canada. Write all your functions one by one into the same file labs109.py so that the acceptance tester script tester109.py can find them. This tester will execute the automated acceptance tests precisely for the functions implemented in […]

Read more

Declarative CLIs with argparse and dataclasses

argparse_dataclass Declarative CLIs with argparse and dataclasses. Features Features marked with a ✓ are currently implemented; features marked with a ⊘ are not yet implemented. [✓] Positional arguments [✓] Boolean flags [✓] Integer, string, float, and other simple types as arguments [✓] Default values [✓] Arguments with a finite set of choices [⊘] Subcommands [⊘] Mutually exclusive groups Examples Using dataclass decorator >>> from argparse_dataclass import dataclass >>> @dataclass … class Options: … x: int = 42 … y: bool […]

Read more

Proper project management with Taskwarrior in vim

Taskwiki Proper project management in vim. Standing on the shoulders of vimwiki and Taskwarrior Installation Make sure you satisfy the requirements Vim 7.4 or newer, with +python or +python3 (NeoVim is also supported) Vimwiki (the dev branch) git clone https://github.com/vimwiki/vimwiki ~/.vim/bundle/ –branch dev Taskwarrior (version 2.4.0 or newer), install either from sources or using your package manager sudo dnf install task tasklib (the develop branch), Python library for Taskwarrior. sudo pip3 install –upgrade -r requirements.txt For neovim users: Note that […]

Read more

Python ctypes wrapper around SDL2

PySDL2 PySDL2 is a pure Python wrapper around the SDL2, SDL2_mixer, SDL2_image, SDL2_ttf, and SDL2_gfx libraries. Instead of relying on C code, it uses the built-in ctypes module to interface with SDL2, and provides simple Python classes and wrappers for common SDL2 functionality. Installation PySDL2 is easy to install and integrate within your own projects. To install or update to the latest version, simply run one of the following commands in a terminal: # Install latest stable version from PyPI […]

Read more

Create a password trought the command line with python

password_generator Password Generator allow you to create a password trough your terminal. Install Requirement pip install requirements.txt make sure to be in the parent folder and to have a virtual envrionment Usage Use without interactive command line interface python app/password_generator.py [password lenght] #if you are in the parent folder python password_generator.py [password lenght] #if you are in the app folder passowrd_generator.py [password lenght] #if you are in the app folder Use with interactive command line interface python app/password_generator.py #if you […]

Read more

Python fitting assistant, cross-platform fitting tool for EVE Online

Pyfa Pyfa, short for python fitting assistant, allows you to create, experiment with, and save ship fittings without being in game. Open source and written in Python, it is available on any platform where Python 3 and wxWidgets are available, including Windows, Mac OS X, and Linux. Latest Version and Changelogs The latest version along with release notes can always be found on the project’s releases page. Pyfa will notify you if you are running an outdated version. Installation Windows […]

Read more

A pure Python-implemented database that looks and works like MongoDB

montydb Monty, Mongo tinified. MongoDB implemented in Python! What is it? A pure Python-implemented database that looks and works like MongoDB. >>> from montydb import MontyClient >>> col = MontyClient(“:memory:”).db.test >>> col.insert_many( [{“stock”: “A”, “qty”: 6}, {“stock”: “A”, “qty”: 2}] ) >>> cur = col.find( {“stock”: “A”, “qty”: {“$gt”: 4}} ) >>> next(cur) {‘_id’: ObjectId(‘5ad34e537e8dd45d9c61a456’), ‘stock’: ‘A’, ‘qty’: 6} Most of the CRUD operators have been implemented. You can visit issue #14 to see the full list. This project is […]

Read more

Visual Weather api. Returns beautiful pictures with the current weather in python

VWapi Visual Weather api. Returns beautiful pictures with the current weather. Installation: sudo apt update -y && sudo apt upgrade -y sudo apt install -y git python3 python3-pip git clone https://github.com/mishailovic/VWapi cd VWapi pip3 install -r requirements.txt python3 -m uvicorn weatherapi:app –reload Usage: import requests import time language = “en” # can be “en” or “ru” place = Moscow # can be any city, place, street, or site, geocoder automatically selects location. timestamp = round(time()) # optional timestamp, can be […]

Read more

Robust and effective logging for Python 2 and 3

logzero Robust and effective logging for Python 2 and 3. Features Easy logging to console and/or (rotating) file. Provides a fully configured standard Python logger object. JSON logging (with integrated python-json-logger) Pretty formatting, including level-specific colors in the console. No dependencies Windows color output supported by colorama Robust against str/bytes encoding problems, works with all kinds of character encodings and special characters. Multiple loggers can write to the same logfile (also across multiple Python files and processes). Global default logger […]

Read more
1 523 524 525 526 527 857