Use deep neural network to predict the sentiment of movie review

IMDB-text-classification-sentiment-prediction Easy to start.Use deep nerual network to predict the sentiment of movie review.Various methods, word2vec, tf-idf and df to generate text vectors.Various models including lstm and cov1d.Achieve f1 score 92. Run python text_wash.py in the data_process folder Run python data_process_word2vec.py, python data_process_tf_manual.py, python data_process_tfidf.py under the data_process folder, this step takes a long time Use bash main.sh word2vec to perform text classification training using word2vec word vectors as training data, and use bash view.sh word2vec to view the redirected […]

Read more

Motion library for Ingenia servo drives with python

Ingeniamotion is a library that works over ingenialink and aims to simplify the interaction with Ingenia’s drives. Requirements Build Module Install locally: python setup.py build_ext -i python setup.py install Generate .whl file: python setup.py build_ext -i python setup.py bdist_wheel Generate documentation For develop the documentation it’s recommended uninstall the ingeniamotion in the pipenv and remove all the .pyd    

Read more

A small and fun Discord Bot that is written in Python and discord-interactions

A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py) If you want to host the bot by yoursel, you must do these steps: Put your bot’s token in ./data/config.json. You can get your bot’s token at here Install required libraries in requirements.txt by using pip discord.py is discontinued. However, a new fork called pycord was created and has been developed based on the beta version(2.0) of discord.py will be for discord-interactions and legacy branch […]

Read more

CPF and CNPJ consultation at the Federal Revenue with Web-Scraping

Repositório contendo scripts Python que realizam a consulta de CPF e CNPJ diretamente no site da Receita Federal. Requerimentos Python 3.x instalado; Driver do navegador que será utilizado. Clique aqui para mais informações; Caminho do driver baixado adicionado ao PATH. Instalação Na pasta do repositório, execute o comando: pip install -r requirements.txt Alterações necessárias Para a execução, é necessário adaptar o código para o navegador que será utilizado. Por padrão o código utiliza o navegador Microsoft Edge. Modificar se necessário: […]

Read more

Super simple bar charts for django admin list views visualizing the number of objects based on date_hierarchy using Chart.js

Super simple bar charts for django admin list views visualizing the number of objects based on date_hierarchy using Chart.js. This package serves as a ready-made drop-in solution with Chart.js included. This way you can super-charge your django admin with date-based bar charts in less than a minute 🙂 Examples Requirements Installation Install Django admin list charts from PyPI by using pip: pip install django-admin-list-charts Add ‘admin_list_charts’ entry to Django    

Read more

A 3D engine powered by ASCII art

asciimare A 3D engine powered by ASCII art. asciimare uses ASCII characters to display 3D graphics directly in the terminal. It is powered by python curses, and renders by raycasting on voxels. asciimare utilizes the combination of 95 printable ASCII characters 8 ANSI colors in the terminal to emulate a variety of hues and brightness. It first analyzes a given font and generate a continous and uniform range of shades, e.g. Menlo.ttc ““““““““““““””””””’……——- -,,,,,______::::::::^^^^^!!~~~””””””;;;;;;rrrrr++++||()==>> >>lllll???iiiccv[]ttzzjj7*ff{{}ssYYTJJJ111unnnnyyyyIIFFFFFFF oooooowe22h3Zaa44XXX%%%555PPPP$$$mmGGAAUUUUbbbppKKK96O##H&&D [email protected]@@@@@@@@@@@@NNNNNNNNNNNN and then plays […]

Read more

Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions

In short, dataset makes reading and writing data in databases as simple as reading and writing JSON files. Read the docs To install dataset, fetch it with pip: Note: as of version 1.0, dataset is split into two packages, with the data export features now extracted into a stand-alone package, datafreeze. See the relevant repository here. GitHub https://github.com/pudo/dataset    

Read more

Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCAN

Abstract Despite their failure to solve the compositional SCAN dataset, seq2seq architectures still achieve astonishing success on more practical tasks. This observation pushes us to question the usefulness of SCAN-style compositional generalization in realistic NLP tasks. In this work, we study the benefit that such compositionality brings about to several machine translation tasks. We present several focused modifications of Transformer that greatly improve generalization capabilities on SCAN and select one that remains on par with a vanilla Transformer on a […]

Read more

Deep learning models for remote sensing applications

Setting up a python environment Follow the instruction in https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html for downloading and installing Miniconda Open a terminal in the code directory Create an environment using the .yml file: conda env create -f deepsatmodels_env.yml Activate the environment: source activate deepsatmodels Install required version of torch: conda install pytorch torchvision torchaudio cudatoolkit=10.1 -c pytorch-nightly Datasets MTLCC dataset (Germany) Download the dataset (.tfrecords) The data for Germany can be downloaded from: https://github.com/TUM-LMF/MTLCC clone the repository in a separate directory: git clone https://github.com/TUM-LMF/MTLCC […]

Read more

Discord Token Finder with python

Find half of your target’s token with just their ID. Install 🔧 pip install -r requeriments.txt Usage 💻 Go to Discord Settings Advanced Enable Developer Mode When you right click on an user, the final option is “Copy ID”, click it and input it into Ttawi Notes 📝 If you see a bug, please open an issue. ☕    

Read more
1 454 455 456 457 458 1,022