- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
| import jieba | |
| seg_list = jieba.cut("我来到北京清华大学", cut_all=True) | |
| print("Full Mode: " + "/ ".join(seg_list)) | |
| # Full Mode: 我/ 来到/ 北京/ 清华/ 清华大学/ 华大/ 大学 | |
| seg_list = jieba.cut("我来到北京清华大学", cut_all=False) | |
| print("Default Mode: " + "/ ".join(seg_list)) | |
| # Default Mode: 我/ 来到/ 北京/ 清华大学 | |
| seg_list = jieba.cut_for_search("我来到北京清华大学") |
| from mongo_connector.compat import u | |
| from mongo_connector.doc_managers.doc_manager_base import DocManagerBase | |
| class DocManager(DocManagerBase): | |
| def __init__(self, url=None, **kwargs): | |
| pass |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls | |
| smtpserver = smtp.gmail.com |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
| sudo apt-get update | |
| sudo apt-get install openjdk-6-jre-headless -f | |
| sudo apt-get install curl | |
| sudo apt-get install unzip | |
| sudo apt-get install openssh-server | |
| sudo curl -OL http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.zip | |
| sudo unzip elasticsearch-* && rm elasticsearch-*.zip | |
| cd elasticsearch-0.19.8 | |
| sudo mkdir /usr/local/elasticsearch |
| # Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
| # Change example.com (server_name) to your website url | |
| # Change /path/to/your/root to the correct value | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /path/to/your/root; | |
| index index.html; |
| In [1]: import reverse_geocoder as rg | |
| In [2]: coordinates = (39.99, 116.48), | |
| In [3]: results = rg.search(coordinates) | |
| Loading formatted geocoded file... | |
| In [4]: print results | |
| [{'name': 'Wangjing', 'cc': 'CN', 'lon': '116.47284', 'admin1': 'Beijing', 'admin2': '', 'lat': '39.9933'}] |