Git Product home page Git Product logo

nlp_tutorial's People

Contributors

arjhe avatar

Watchers

 avatar  avatar

nlp_tutorial's Issues

segment conflict

if load the dict with words in combo like "今天, 今天天氣, 天氣".
Jieba will cut the longest one even put high weight to the short one.

# userdict.txt
今天 15960 t
今天天氣 3 i
天氣 2657 n
import jieba
print(jieba.lcut("今天天氣"))
jieba.load_userdict("userdict.txt")
print(jieba.lcut("今天天氣"))

[今天,天氣]
[今天天氣]

Django database path config

There are two version postgreSQL in server.
image

After config setting.py DATABASES parameter, and runserver.
It showed error.
How to config pg_path in Django like odoo:
image

jieba segment

cut string: 總統蔡英文論文風波延燒後,最新民調今日出爐!據親藍民調公布結果,蔡英文支持度45%,遙遙領先韓國瑜的33%,兩人差距擴大到12個百分點。顯示論文門風波,並未重創小英聲望。

output list: ['總統', '蔡', '英文', '論文風', '波延燒', '後', ',', '最新', '民調', '今日', '出爐', '!', '據親', '藍民調', '公布', '結果', ',', '蔡', '英文', '支持', '度', '45%', ',', '遙遙', '領先', '韓國瑜', '的', '33%', ',', '兩人', '差距', '擴大到', '12', '個', '百分', '點', '。', '顯示', '論文門', '風波', ',', '並未重', '創小英', '聲望', '。']

problem : '蔡', '英文', '論文風', '波延燒', '並未重', '創小英'

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.