Comments (5)
根据您的crawl.py我写了一个脚本,再次感谢您的工作。
toutiaospider.py
from dianjing.
我先在的做法是,直接依靠jieba 分词的结果,把所有 unique 的 时间和数字都直接转换为 一个 unique 的word. 会做一下过滤,如果这个word 出现的词频很低,则 使用 "<unk>" 统一标识。
from dianjing.
我现在正在做的方法是在分词前用正则替换所有的日期和数字
from dianjing.
主要看,将来怎么使用想这些日期和数字,如果是很重要的,需要在标题中出现,需要做些更细致的处理。
from dianjing.
你好,我在用FLOAT和DATE等特殊字符替换了所有的数字和日期后,导致了FLOAT词频过高,最终生成标题不可读。我正在想其他更好的方式。
谢谢。
from dianjing.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dianjing.