SlideShare a Scribd company logo
NLTK
Python


           NLTK Study at Kauli
           2011. 07. 26 Nekoya
NLTK
Python setup
OK
Python setup
CentOS   NLTK
Python
Python
   CentOS 5.5 - Python 2.4.3


                2.6
EPEL
http://fedoraproject.org/wiki/EPEL

  epel-release-5-4.noarch.rpm
EPEL
$ sudo rpm -ivh http://
download.fedora.redhat.com/pub/epel/5/
x86_64/epel-release-5-4.noarch.rpm
Python2.6 RPM

$ sudo yum install python26
python26-libs python26-devel
virtualenv
    /usr/local
      Sandbox

         Python
virtualenv
     virtualenvwrapper
       pythonbrew
virtualenv
$ sudo yum install python-virtualenv
virtualenv
$ virtualenv --python=/usr/bin/python26
/nltk/python

 /nltk/python/ virtualenv
virtualenv
$ source /nltk/python/bin/activate


            virtualenv       active
     .bashrc                    OK
mod_wsgi
 Apache    WSGI
                  (?)

     uWSGI
mod_wsgi
  uWSGI   server-status
mod_wsgi
$ sudo yum install python26-mod_wsgi


          mod_wsgi         2.4
httpd.conf
LoadModule wsgi_module modules/python26-mod_wsgi.so

WSGIPythonHome "/nltk/python"
#WSGIPythonPath "/nltk/python/lib/python2.6/site-packages"

<VirtualHost *:80>
 ServerName localhost
 WSGIScriptAlias / /nltk/test.py
</VirtualHost>
wsgi application
   import nltk
from wsgiref import simple_server

def application(environ, start_response):
    start_response('200 OK', [('Content-type', 'text/plain')])
    return dir('nltk')

if __name__ == '__main__':
    server = simple_server.make_server('', 5000, application)
    server.serve_forever()

More Related Content

PPTX
Great Hiroshima with Python 170830
PPTX
Quick Start Guide using Virtuozzo 7 (β) on AWS EC2
PDF
David container security-with_falco
PDF
OSS AWS 핸즈온 강의
PDF
Introduction to Sumatra
PDF
Starting python
DOCX
Proxy server ubuntu 12.04
PDF
Deploying Prometheus stacks with Juju
Great Hiroshima with Python 170830
Quick Start Guide using Virtuozzo 7 (β) on AWS EC2
David container security-with_falco
OSS AWS 핸즈온 강의
Introduction to Sumatra
Starting python
Proxy server ubuntu 12.04
Deploying Prometheus stacks with Juju

What's hot (20)

PDF
20150613 self-puppet v4-avoiding_dragons
PDF
Learn Python
PPTX
Container: is it safe enough to run you application?
ODP
Linux Capabilities - eng - v2.1.5, compact
DOCX
NAS Botnet Revealed - Mining Bitcoin
PDF
Heroku pycon
PDF
Alexander Reelsen - Seccomp for Developers
PDF
Python by Martin Geisler
PDF
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
KEY
/etc/rc.d配下とかのリーディング勉強会
PDF
(131116) #fitalk extracting user typing history on bash in mac os x memory
PDF
nginxをソースからインストールしてみたよ
PPTX
Salting new ground one man ops from scratch
PDF
WHEN FILE ENCRYPTION HELPS PASSWORD CRACKING
PDF
IL: 失われたプロトコル
PDF
libuv, NodeJS and everything in between
PDF
도커 없이 컨테이너 만들기 4편 네트워크네임스페이스 (2)
PDF
Linux kernel bug hunting
PDF
Openstack kilo installation using rdo
20150613 self-puppet v4-avoiding_dragons
Learn Python
Container: is it safe enough to run you application?
Linux Capabilities - eng - v2.1.5, compact
NAS Botnet Revealed - Mining Bitcoin
Heroku pycon
Alexander Reelsen - Seccomp for Developers
Python by Martin Geisler
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
/etc/rc.d配下とかのリーディング勉強会
(131116) #fitalk extracting user typing history on bash in mac os x memory
nginxをソースからインストールしてみたよ
Salting new ground one man ops from scratch
WHEN FILE ENCRYPTION HELPS PASSWORD CRACKING
IL: 失われたプロトコル
libuv, NodeJS and everything in between
도커 없이 컨테이너 만들기 4편 네트워크네임스페이스 (2)
Linux kernel bug hunting
Openstack kilo installation using rdo
Ad

Viewers also liked (20)

PDF
アラートメールの運用
KEY
DBIx::Skinnyと仲間たち
KEY
俺とプログラマーズカフェ
PDF
About test
PDF
Article Vibradores (2)
PDF
Article Vibradores (10)
PPTX
Aviario
DOCX
Modelo de von newman
PDF
Worms Eat My Garbage ~ University of Florida
PPTX
WIE - IEEE Women in Engineering
PDF
Cricket Workshop Flyer Feb 2016 DRAFT 1
PPTX
Facteurs hypothécaire
KEY
SmartCSS
PPTX
Haiman El Troudi Douwara: Metro de Caracas: el sistema de transporte más impo...
PDF
なぜパスワードを使い回すとシステム部が切れるのか
PPTX
Material de apoyo lengua castellana grado 5
PDF
ライブラリでよくある動きをUIKitのみでDIYしてみる(Part1)
PDF
オブジェクト指向プログラミング再入門
PDF
Firebaseでのファイルアップロード処理と便利ライブラリの紹介
PDF
インターネット広告とPerl、ここ数年の歩み
アラートメールの運用
DBIx::Skinnyと仲間たち
俺とプログラマーズカフェ
About test
Article Vibradores (2)
Article Vibradores (10)
Aviario
Modelo de von newman
Worms Eat My Garbage ~ University of Florida
WIE - IEEE Women in Engineering
Cricket Workshop Flyer Feb 2016 DRAFT 1
Facteurs hypothécaire
SmartCSS
Haiman El Troudi Douwara: Metro de Caracas: el sistema de transporte más impo...
なぜパスワードを使い回すとシステム部が切れるのか
Material de apoyo lengua castellana grado 5
ライブラリでよくある動きをUIKitのみでDIYしてみる(Part1)
オブジェクト指向プログラミング再入門
Firebaseでのファイルアップロード処理と便利ライブラリの紹介
インターネット広告とPerl、ここ数年の歩み
Ad

Similar to Python setup (20)

PPTX
First python project
PDF
Package Management via Spack on SJTU π Supercomputer
PDF
Django district pip, virtualenv, virtualenv wrapper & more
PDF
Virtualenv
PDF
Arbeiten mit distribute, pip und virtualenv
ODP
Virtualenv
PDF
AWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
KEY
Python environments
PPTX
大家一起學Python
PDF
Instalando Cacti no CentOS 5
ODP
5 minute intro to virtualenv
PDF
Docker to the Rescue of an Ops Team
PDF
Docker to the Rescue of an Ops Team
PDF
Python arch wiki
PDF
A.I. Exercise.
KEY
Ruby and Rails Packaging to Production
PDF
Software Quality Assurance Tooling 2023
PDF
How to Install Odoo 17 on Ubuntu.pdf
PDF
Princeton Wintersession: Software Quality Assurance Tooling
PPTX
Odoo 13 installation on ubuntu 19.04
First python project
Package Management via Spack on SJTU π Supercomputer
Django district pip, virtualenv, virtualenv wrapper & more
Virtualenv
Arbeiten mit distribute, pip und virtualenv
Virtualenv
AWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
Python environments
大家一起學Python
Instalando Cacti no CentOS 5
5 minute intro to virtualenv
Docker to the Rescue of an Ops Team
Docker to the Rescue of an Ops Team
Python arch wiki
A.I. Exercise.
Ruby and Rails Packaging to Production
Software Quality Assurance Tooling 2023
How to Install Odoo 17 on Ubuntu.pdf
Princeton Wintersession: Software Quality Assurance Tooling
Odoo 13 installation on ubuntu 19.04

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
Teaching material agriculture food technology
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Teaching material agriculture food technology
sap open course for s4hana steps from ECC to s4
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf

Python setup

Editor's Notes