[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
React Native Reaction-native-videos Realize the Function of Music Player and Progress Bar
React Native (1) React-native-videos to realize the functions of music player and progress bar
Functions:
1. Sliding cards to cut songs
2. Display progress bar
Design sketch:
Third-party components:
1.react-native-video
Github address: https://github.com/react-native-community/react-native-video
2.react-native-animated-tabs
Github address: htt ...
Posted by fragger on Wed, 31 Jul 2019 00:22:00 -0700
Codeforces Round #576 (Div. 2) | CF1199 Supplement
A. City Day Is it troublesome to use the st table//
Then O(1) queries the minimum number of X before this number and the minimum number of y after this number, noting that the boundary and x, y are zero.
1 #include<bits/stdc++.h>
2 #include<iostream>
3 #include<stack>
4 #include<algorithm>
5 #include<cst ...
Posted by jcantrell on Tue, 30 Jul 2019 23:19:48 -0700
C# Personal Notes
Catalog
Preface
Asynchronous tasks
Disadvantages of Synchronization Method
Asynchronous method
Return to Task
Return to Task<T>
Preface
Record some things in C #, base a lot or not, or recommend Microsoft's official documents, online blogs are too watery, or offic ...
Posted by edwardsbc on Tue, 30 Jul 2019 23:18:43 -0700
php uses mpdf to configure font styles for specified fields
Two days ago, I was working on a pdf export function. The plug-in used was kartik-v/yii2-mpdf, and the plug-in used mpdf.
composer required kartik-v/yii2-mpdf
mpdf document address: https://mpdf.github.io/
There is a requirement that a specified field be set to a specified font in the exported pdf. Other information does not use this font.
At f ...
Posted by nano on Tue, 30 Jul 2019 23:04:26 -0700
The Third Event of Hangzhou Electric Power University in 2019 1004 Distribution of books
Topic link: http://acm.hdu.edu.cn/showproblem.php?pid=6606
Considering the dichotomous answer, we divide a value of (x\), then how to verify the feasibility of the answer? Considering the DP solution, let(dp[i]) be the first one and divide up the maximum number of groups with the answer of (x), then if\(dp[n]geq k\ is feasible, it is obvious th ...
Posted by zedan_80 on Tue, 30 Jul 2019 22:58:12 -0700
php Picture Rotation and png Transparency
Because of the need to process the generated two-dimensional code image rotation, and then merge with another png image, the pictures are all png
<?php
// this file writes the image into the http response,
// so we cant have any output other than headers and the file data
ob_start();
$filename = 'qrcode.png'; //my qrcode background co ...
Posted by Papalex606 on Tue, 30 Jul 2019 22:13:15 -0700
Using yiisoft/yii2-httpclient
yiisoft/yii2-httpclient is an extension of Yii2's HTTP client, dedicated to calling remote interfaces.
First: Install yiisoft/yii2-httpclient
composer require yiisoft/yii2-httpclient
II: Use
1:get request
get requests I summarized the following three ways to use them
(1) Using get method, the parameters are directly connected to the interface a ...
Posted by edwardoka on Tue, 30 Jul 2019 22:10:02 -0700
[Sliding Window] leetcode 239 Sliding Window Maximum
problem:https://leetcode.com/problems/sliding-window-maximum/
Solution 1: Using balanced binary tree (map), time complexity: O (N * log K)
class Solution {
public:
vector<int> maxSlidingWindow(vector<int>& nums, int k) {
vector<int> res;
if (nums.size() == 0) return res;
map<int,int& ...
Posted by Eddie Fisher on Tue, 30 Jul 2019 20:00:32 -0700
Teach you how to modify the blog background
First of all, create an album called Background in your blog (call everything for convenience)
Next, open the picture and review the elements (usually F12)?
Find http until jpg copies them (file path of picture)
Then copy the following metaphysical code
/*simplememory*/
#google_ad_c1, #google_ad_c2 {display:none;}
.syntaxhighlighter ...
Posted by joeiscoolone on Tue, 30 Jul 2019 19:47:20 -0700