推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
galileo1214
V2EX  ›  Python

自然语言处理问题 W2V

  •  
  •   galileo1214 · May 6, 2021 · 2097 views
    This topic created in 1838 days ago, the information mentioned may be changed or developed.

    我看好像所有语料都是连在一起的 那么第一句的末尾词和第二句开头词也是有关系的 按道理来说不应该是有关系的,想问下有什么定论吗?

    1 replies    2021-05-07 15:56:16 +08:00
    princelai
        1
    princelai  
       May 7, 2021
    开头连着结尾是合理的,比如文本生成,生成到句号,需要根据上 N 个词和句号来继续生成下一句话的开头。

    而且就算真的没有上下文关系,只要你的每句话够长,那么不管 window=5 还是 7,都只有少部分两句话被关联起来了,对于整体的分布影响不大。

    最后如果你非纠结这个问题,那你自己 split('.;')或者正则分割一下不就好了吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3075 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    ♥ Do have faith in what you're doing.