(NLP): 07 fastText training Chinese model text categorization
Two other ways to install fastText
conda install mode: slow
https://anaconda.org/conda-forge/fasttext
windows version can be installed through WHL (fasttext 0.9.1 cp36 cp36m win32.whl), which can be used under windows.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#fasttext
fastText Training
import fas ...
Posted by Unforgiven on Sun, 06 Oct 2019 11:44:46 -0700
Book Example 3 Radio Button and Check Button
Example 3 of Delphi 7 Programming Skills and Case Elaboration
After reading the title, I first realized it according to my own ideas. I checked the properties of the control once again when I clicked the "display" button to determine the content of ShowMessage. The sample program given in the book is to update the variables with ...
Posted by Desertwar on Sun, 06 Oct 2019 11:42:11 -0700
python crawler learning crawl super-pure aesthetic wallpaper
brief introduction
The choice of wallpaper can, to a great extent, be able to see the inner world of the computer host. Some people like the scenery, some people like the stars, some people like beautiful women, others like animals. However, one day you will have aesthetic fatigue, but when you decide to change the wallpaper, you will find tha ...
Posted by toffler on Sun, 06 Oct 2019 10:11:24 -0700
Summer Progress Plan 2: Climb the details of a Top100 movie and store the results in the database
Crawl the top 100 movie information of an eye and store it in the database
It's hard for me to make it today. Cry.
number
picture
Full name
To star
time
score
Let's put the code below:
from urllib import request
from bs4 import BeautifulSoup
import pymysql
conn = pymysql.connect(host = 'localhost', u ...
Posted by amclean on Sun, 06 Oct 2019 04:50:19 -0700
In 10 minutes, we use python to realize the English name of a given movie and climb to the Chinese name and box office on the cat's eye.
&
[root@xxn maoyan]# cat cat.py
#!/usr/bin/env python
#coding:utf-8
import requests
from bs4 import BeautifulSoup
def movieurl(url):
"""
//One-page url address for getting movies
"""
headers = {
"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, li ...
Posted by stukov on Sat, 05 Oct 2019 19:51:18 -0700
Regularized crawl product information and packaged it into.exe executable program.
This article crawls the content, enters the search key, can automatically climb the shop name, the commodity name, the price, and climb 100 pages (100 pages).
The code is as follows.
import requests
import re
# Request header
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome ...
Posted by MajusC00L on Sat, 05 Oct 2019 12:29:06 -0700
scrapy framework crawls all sister pictures.
Crawl all the pictures and create a folder for the pictures of a page. Difficulties, there are many. gif pictures in the picture, which need to rewrite the download rules.
Create scrapy projects
scrapy startproject qiumeimei
Creating crawler applications
cd qiumeimei
scrapy genspider -t crawl qmm www.xxx.com
Define download fiel ...
Posted by enemeth on Sat, 05 Oct 2019 08:09:44 -0700
python crawler-Tao translation-js encryption cracking
Dow Translation-js Encryption Cracking
This is a locally crawled website: http://fanyi.youdao.com/
I. Analysis Request
We input the fruit in the page: the English after translation is fruit. There are many parameters in the request. First, save the parameter data and make a record.
Let's enter a new word: watermelon.
i: watermelon
from: AUTO
t ...
Posted by spitfire_esquive on Sat, 05 Oct 2019 07:04:58 -0700
Traversal performance comparison of QVector and vector in qt and QMap and map
The use of containers in Qt brings great convenience to C++ development, and some member functions extended by containers such as QVector and QMap are also very convenient. But how efficient are Qt's containers compared with STL's? I've just written a few simple traversal examples to test the more ef ...
Posted by Dragoon1 on Sat, 05 Oct 2019 03:35:06 -0700
A minor problem with NLTK download paths.
For the most part, I've recently learned about NLTK for the first time, so I'd like to learn the following code
nltk.tokenize import sent_tokenizemytext = "Hello Mr. Adam, how are you? I hope everything is going well. Today is a good day, see you dude."sent_tokenize(mytext)
An error has been reported.Resource punkt not found.Please use the N ...
Posted by MDanz on Sat, 05 Oct 2019 02:42:49 -0700