Python Interesting | Emotional Analysis of Chinese Texts

Preface Previously, I have talked about the path of python machine learning. This time, Luo Luopan takes you to complete a machine learning project of Chinese text sentiment analysis. Today's process is as follows: Data Situation and Processing Data situation The data here are for the comments of the public (provided ...

Added by patrickrock on Sat, 18 May 2019 01:57:03 +0300

Shell Initial (2) Shell Operator

Shell Initial (2) Shell Operator Shell basic operator Shell, like other programming languages, supports a variety of operators, including: Arithmetic operator Relational operator Boolean operator String operator Native bash does not support simple mathematical operations, but can be implemented by other commands, such as awk and expr, e ...

Added by messer on Sat, 18 May 2019 00:24:05 +0300

3/7 of the Java Foundation in 7 days

API overview What is API? API (Application Programming lnterface), application programming interface. The so-called API is the value of many classes, many methods, JDK gives us a lot of ready-made classes, we can use them directly, these classes are API. API Official Documentation The Use of Scanner Classes in Several Common API s Guide bag B ...

Added by tbare on Sat, 18 May 2019 00:14:56 +0300

Overview of Object-Oriented Programming Day 24

Three Questions in Life What is an object The real thing with certain characteristics and behaviors is the object, everything is the object. What is a class A combination of a series of objects with the same characteristics and behavior is called a class.In programming, only classes can have objects. 1. What is Object OrientedObject- ...

Added by salasilm on Fri, 17 May 2019 23:59:20 +0300

A thorough understanding of the 0-1 knapsack problem

Reprinted from: https://blog.csdn.net/chanmufeng/article/details/82955730 0-1 knapsack problem The 0-1 knapsack problem is that each item can only be used once. Recursive Method public class KnapSack01 { /** * Recursive Function for Solving Knapsack Problem * * @param w Weight Array of Items * ...

Added by pelleas1022 on Fri, 17 May 2019 23:49:38 +0300

A week's study

This week's lessons are: exceptions, collections, IO streams, multithreading. abnormal 1. I personally understand that exceptions are abnormal events that occur in the process of running a program, which will end the running program.2.Java exception handling: Java has the ability to handle exceptions. Java has five keywords to handle exceptions ...

Added by hannnndy on Fri, 17 May 2019 16:45:28 +0300

Solution of Single Case Model in Concurrent

The most memory-intensive object creation process must be constrained. As a Singleton, it always maintains that there is only one instance in the application, which can significantly improve the performance of the program. The following four implementations of singleton are discussed. The stability of Singleton under single thread is excellent ...

Added by jshowe on Fri, 17 May 2019 16:22:44 +0300

Summary of Java Multithreading and Concurrent Programming

Java concurrent programming: two ways of interthread collaboration: wait, notify, notify All and Condition We've talked a lot about synchronization in the past, but in reality, collaboration between threads is needed. For example, the most classic producer-consumer model: when the queue is full, the producer needs to wait ...

Added by Blu_Smurf on Fri, 17 May 2019 12:02:16 +0300

Data structure and algorithm stack

1, stack 1.1. What is a stack The structure of the stack is similar to that of the cartridge clip of a gun. The first bullet placed in the cartridge clip is the last one to be hit, while the last bullet placed in the cartridge clip is the first one to be hit, which is called the data structure of "first-in-last-out" ...

Added by 9999 on Fri, 17 May 2019 09:47:10 +0300

My way to self-study Python (Phase 2 Day8)

1. Some Usages of Decorators and Functions from functools import wraps def wrapper(func): @wraps(func) def inner(): func() return inner @wrapper def func1(): '''jisfhsdkfkd''' print('ddf') print(func1.__name__) func1() print(func1.__doc__) # def index(): # '''This is a homepage information.''' # print('from ...

Added by euph on Fri, 17 May 2019 02:25:58 +0300