Giter Club home page Giter Club logo

Comments (5)

QuantumLiu avatar QuantumLiu commented on July 21, 2024 2

根据您的crawl.py我写了一个脚本,再次感谢您的工作。
toutiaospider.py

from dianjing.

harveyaot avatar harveyaot commented on July 21, 2024

我先在的做法是,直接依靠jieba 分词的结果,把所有 unique 的 时间和数字都直接转换为 一个 unique 的word. 会做一下过滤,如果这个word 出现的词频很低,则 使用 "<unk>" 统一标识。

from dianjing.

QuantumLiu avatar QuantumLiu commented on July 21, 2024

我现在正在做的方法是在分词前用正则替换所有的日期和数字

from dianjing.

harveyaot avatar harveyaot commented on July 21, 2024

主要看,将来怎么使用想这些日期和数字,如果是很重要的,需要在标题中出现,需要做些更细致的处理。

from dianjing.

QuantumLiu avatar QuantumLiu commented on July 21, 2024

你好,我在用FLOAT和DATE等特殊字符替换了所有的数字和日期后,导致了FLOAT词频过高,最终生成标题不可读。我正在想其他更好的方式。
谢谢。

from dianjing.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.