[NLP] Summer homework 3 - Part of speech tagging (simple word frequency probability statistics)

Tasks: The part of speech tagging training and testing were carried out using the 1998 People's Daily corpus. Job input: In 1998, the People's Daily Corpus (1998-01-105-tape.txt) used 80% data as training set and 20% data as verification set. Operating environment: Jupyter Notebook, Python3 Method of operation: A simple statistical method is us ...

Posted by billshackle on Wed, 31 Jul 2019 00:23:37 -0700

Tree data used in projects

1. Introduction In some management systems, it is commonly used. Some tree data, such as department organization and authority, are used to generate tree data. Some tree data generation tools need to be written. Generally, recursive methods are used, and poor performance may lead to stack explosion. After analysis and reflection, I decided not ...

Posted by benn600 on Tue, 30 Jul 2019 16:59:29 -0700

java Chinese Reading

java Chinese Reading Hexadecimal Values of Chinese Characters in Different Encoding Ways Reading Chinese by Character Stream Read text using FileReader Hexadecimal Values of Chinese Characters in Different Encoding Ways Different encoding methods, Chinese hexadecimal values are also different, s ...

Posted by timbo6585 on Tue, 30 Jul 2019 13:19:17 -0700

Heap of Data Structure Learning, Huffman

What is a heap? A heap is a special queue created to handle a particular situation in which the elements are taken out in the order of their priority, not the order in which they are entered.So why organize this form?Since there are various unsatisfactory aspects to sequential storage or chain tables ...

Posted by pbaker on Mon, 29 Jul 2019 18:50:31 -0700

python, basic (beginners one)

Run the first py file: Python3x: Python file path return Python2x: Python file path return Difference: The default encoding method for python2 is ascii. # -*- encoding:utf-8 -*- python3 default utf-8     Variables: Is to temporarily store the intermediate results of some operations in memory for subsequent code calls. 1, m ...

Posted by gonsman on Mon, 29 Jul 2019 14:41:59 -0700

Go Crawler HTTP Request QuickStart

A few days ago, I talked about how to imitate learning on the topic of "knowing your thoughts". I gave an example of how to imitate Pyhton's requests through net/http client. But it hasn't been practiced. Is an idea really only an idea? Of course not, so I decided to suspend GO notes for a week to practice my ideas. There are some new ...

Posted by Orpheus13 on Sun, 28 Jul 2019 23:07:23 -0700

Old boy python stack s21day04 notes (data type)

day04 data type (2) Today's Content list tuple Content review and supplement Computer Foundation Hardware: CPU/memory/hard disk/motherboard/network card Operating system: linux (free / open source) centos ubuntu redhat windows mac Interpreter/compiler Supplementary: Compiled and E ...

Posted by Navajo on Sun, 28 Jul 2019 03:16:52 -0700

Java IO Stream Learning

Java IO Stream Learning 1 IO Flow Overview 2-byte stream 2.1 Read file content in bytes 2.2 Loop Read 2.3 Read file contents in byte arrays 2.4 Loop Read Byte Array Exception Handling of 2.5 IO Flow 2.6 Write content to a file 2.7 Implementing File Replication 3 character stream 3.1 Read File Cont ...

Posted by jacksonmj on Sun, 28 Jul 2019 01:40:10 -0700

Intelligent Toy API Document

User-related API s User registration: Used for App user registration URL address: / reg Request mode: POST Request agreement: JSON: { "username":username, "password":password, "nickname":nickname, "gender":gender, "avatar":avatar.jpg } Response data: JSON: { "code":0, "msg":"login was successful", "data":{} } Use ...

Posted by NeoGeo on Sat, 27 Jul 2019 22:53:19 -0700

First article on python data types

IO file output Question 1: How does Python implement print without line change? By default, Python's print() function is newline, such as print("Hello Dacheng") print("!!!") # Output Hello Dacheng !!! Look at the source code of the print() function. By default, end=" n" (newline), n means newline character. ...

Posted by matthewhaworth on Sat, 27 Jul 2019 04:48:39 -0700