Chinese word 2vec training of Wiki encyclopedia based on gensim

Introduction to Word2Vec Word2Vec is a way of expressing words. Unlike one-hot vector, word 2vec can express the similarity between words by calculating the distance between words. Word2vec extracts more features, which make words with the same contextual semantics as close as possible, while words with less relevant semantics as far as possibl ...

Posted by picos on Fri, 14 Jun 2019 16:25:26 -0700

OC small code block

1. Set the font color and size of the navigation bar title Method 1: (Custom view method, the general public will also adopt this way) To add a titleView to the navigation, you can use a label, and then set the background color of the label to be transparent. It's easy to set the font or something.         //Custom Title View UILabel *t ...

Posted by simon71 on Fri, 14 Jun 2019 14:08:19 -0700

Basic use of the Picasso framework

Picasso Framework Download Address: https://github.com/square/picasso       First import dependencies in Android studio compile 'com.squareup.picasso:picasso:2.5.2' 1. Picture loading 1.1 Load local pictures int resourceId = R.mipmap.ic_launcher; Picasso.with(this).load(resourceId).into(iv1); 1.2 Load sd card pictures ...

Posted by devinemke on Thu, 13 Jun 2019 09:53:35 -0700

ssl protocol and open source implementation of openssl

ssl protocol Secure Socket Layer: Secure Socket Layer, ssl is a set of security protocols, which are called by application layer. When http calls ssl protocol, it is called https. When ftp calls ssl protocol, it is called sftp. lls is a collection of protocols, including: Handshake protocol: including negotiating security parameters and pas ...

Posted by timclaason on Mon, 10 Jun 2019 17:02:40 -0700

Share an encryption algorithm

What kind of encryption is this? Can I eat it? What I want to share with you today should be BASE64,MD5,AES The algorithm is implemented together, but the volume of encryption will be larger, he can't eat it.   Overview The encryption process is probably purple: Text BASE64 Coding _AES Encryption Get ciphertext Password MD5 Encryption The pro ...

Posted by eskimo42 on Mon, 10 Jun 2019 15:15:45 -0700

Another simple implementation of Android RecycleView Item animation expansion details

Not much to say, let's see the effect first. Generally, many people on the Internet, RecycleView Item expand the effect of the idea is through the add and remove of item to achieve, but what problems will the effect of the graph appear? Each item has rounded corners Each item has spacing If it is also achieved through add and remove, how t ...

Posted by Snewzzer on Mon, 10 Jun 2019 13:43:05 -0700

Android UI performance optimization

Origin: http://blog.csdn.net/qq_23191031. Author: Dashengdai 1. Preface With the vigorous development of mobile market in recent years, a large number of people have been involved in it. Android,iOS At the same time, every major training institute in China trains thousands of developers with 2 to 3 years'working experience every month ...

Posted by abolmeer on Mon, 10 Jun 2019 13:02:25 -0700

Minimalist Android Recycler View Adapter (using Data Binding)

Reading this article requires readers to have some knowledge of Android Data Binding and Recycler View. brief introduction We know that the core idea of Data Binding is data-driven. The goal of data-driven is View. With DataBinding, View automatically changes by adding, modifying, and deleting data sources. Android Recycler View's Adadapter s ...

Posted by davidlenehan on Sun, 09 Jun 2019 17:32:23 -0700

python Learning Notes - Sckit-Learn Learning [1]

Feature extraction Detailed explanations are recorded in Portal I'm just here to sort out the APIs I've learned about. Loading features from dicts This is convenient to extract data features, such as our data is dict form, there are three different cities, you can one-hot encode. Using the Dict Vectorizer module >>> measurements = [ .. ...

Posted by chadu on Sun, 09 Jun 2019 11:12:39 -0700

The Use of the Length of Varichar 2 Type Fields in Oracle

In order to commemorate the 90th anniversary of the founding of the People's Republic of China, this article is dedicated to commemorate our military's prestige!!! I. Background of the problem Commodities in the project were released, but they were not saved successfully. II. Problem Orientation Preliminary judgment to save to the database wh ...

Posted by Sephiriz on Sat, 08 Jun 2019 12:49:25 -0700