Quiet Time

엔터티란(Entity)

SQL 기본2022. 10. 6. 09:35

엔티티란? Entity 란 업무의 관심 대상이 되는 정보를 갖고 있거나 그에 대한 정보를 알아야하는 유형, 무형의 사물이나 객체를 말한다.

– 엔티티의 예)

• 고객, 사원정보, 부서, 제품 • 주문서, 성적표, 입고전표, 금전출납부 • 생산계획, 공정

 

 

3장. 데이터모델링의 주요 개념

❑ 개요 ❑ 엔티티 ❑ 속성 ❑ 관계 ❑ 주식별자와 외래 식별자 ❑ ERD 표기법

'SQL 기본' 카테고리의 다른 글

11장 . 기타 스키마 객체  (0) 2017.09.07
10장 DDL문을 사용해서 테이블을 생성 및 관리  (0) 2017.09.07
9장 데이터 조작 언어 (DML문)  (0) 2017.09.07
8장 집합 연산자 사용  (0) 2017.09.07
7장 Subquery 사용  (0) 2017.09.07

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

확인

STOPWORD

카테고리 없음2019. 8. 16. 22:05


stop_words={'twelve', 'yourselves', 'nor', 'con', 'here', 'our', 'whatever', 'mine', 'then', 'down', 'between', 'everyone', 'eg', 'just', 'yours', 'bill', 'none', 'inc', 'itself', 'be', 'because', 'hereupon', 'toward', 'me', 'six', 'some', 'noone', 'herself', 'in', 'above', 'make', 'thru', 'whereas', 'those', 'hence', 'himself', 'them', 'unless', 'yet', 'couldnt', 'last', 'under', 'he', 'somehow', 'or', 'neither', 'five', 'thereupon', 'part', 'two', 'full', 'using', 'up', 'really', 'wherever', 'as', 'front', 'back', 'nine', 'otherwise', 'sometime', 'after', 'seem', 'someone', 'anything', 'did', 'am', 'towards', 'whom', 'across', 'from', 'whence', 'less', 'wherein', 'have', 'four', 'quite', 'without', 'per', 'and', 'its', 'didn', 'been', 'hereafter', 'before', 'interest', 'please', 'seems', 'nowhere', 'very', 'well', 'but', 'whereafter', 'cannot', 'amongst', 'must', 'namely', 'few', 'hundred', 'behind', 'others', 'whenever', 'serious', 'among', 'even', 're', 'moreover', 'upon', 'of', 'him', 'anyway', 'show', 'alone', 'call', 'to', 'keep', 'since', 'still', 'onto', 'doesn', 'other', 'too', 'un', 'would', 'if', 'describe', 'next', 'had', 'along', 'fire', 'go', 'all', 'my', 'afterwards', 'this', 'so', 'has', 'further', 'seeming', 'sometimes', 'why', 'were', 'there', 'thereby', 'least', 'again', 'they', 'almost', 'several', 'top', 'ltd', 'than', 'another', 'enough', 'beforehand', 'at', 'else', 'get', 'becoming', 'for', 'an', 'various', 'ten', 'nevertheless', 'etc', 'throughout', 'latterly', 'ie', 'mostly', 'don', 'amoungst', 'beyond', 'beside', 'same', 'such', 'nobody', 'below', 'may', 'can', 'thence', 'about', 'out', 'cant', 'that', 'much', 'used', 'perhaps', 'already', 'indeed', 'detail', 'computer', 'does', 'should', 'take', 'which', 'yourself', 'hasnt', 'every', 'also', 'being', 'although', 'thick', 'whereupon', 'name', 'doing', 'each', 'fifteen', 'thereafter', 'with', 'only', 'ever', 'see', 'most', 'own', 'formerly', 'rather', 'de', 'you', 'us', 'she', 'we', 'km', 'when', 'during', 'eleven', 'however', 'regarding', 'against', 'first', 'are', 'together', 'once', 'on', 'often', 'always', 'whether', 'becomes', 'not', 'became', 'anywhere', 'though', 'was', 'sixty', 'who', 'the', 'co', 'besides', 'any', 'never', 'give', 'former', 'around', 'both', 'amount', 'more', 'themselves', 'one', 'empty', 'thin', 'whose', 'by', 'whither', 'could', 'will', 'find', 'whole', 'hers', 'say', 'therefore', 'hereby', 'fill', 'these', 'done', 'through', 'thus', 'her', 'sincere', 'until', 'what', 'might', 'how', 'his', 'latter', 'meanwhile', 'nothing', 'a', 'move', 'side', 'somewhere', 'their', 'is', 'found', 'become', 'elsewhere', 'over', 'ourselves', 'i', 'put', 'no', 'whereby', 'anyone', 'cry', 'eight', 'myself', 'ours', 'everything', 'except', 'forty', 'it', 'your', 'system', 'many', 'off', 'where', 'while', 'within', 'due', 'now', 'third', 'herein', 'twenty', 'whoever', 'into', 'do', 'bottom', 'everywhere', 'something', 'via', 'either', 'fify', 'seemed', 'anyhow', 'three', 'kg', 'therein', 'made', 'mill'
,'already', 'ltd', 'until', 'on', 'besides', 'becoming', 'de', 'few', 'same', 'which', 'in', 'made', 'whom', 'though', 'being', 'front', 'whereby', 'whose', 'who', 'along', 'anyone', 'have', 'now', 'been', 'often', 'else', 'her', 'formerly', 'found', 'co', 'ever', 'can', 'mill', 'yet', 'hereby', 'always', 'around', 'only', 'eg', 'its', 'thereupon', 'there', 'at', 'nevertheless', 'mine', 'nine', 'give', 'becomes', 'hers', 'see', 'wherein', 'neither', 'nobody', 'sometime', 'six', 'too', 'behind', 'someone', 'himself', 'she', 'down', 'afterwards', 'about', 'with', 'anyway', 'fire', 'couldnt', 'they', 'their', 'first', 'somehow', 'un', 'herein', 'well', 'less', 'elsewhere', 'the', 'cannot', 'myself', 'would', 'therefore', 'thick', 'ours', 'some', 'empty', 'our', 'again', 'con', 'name', 'bottom', 'five', 'interest', 'were', 'me', 'may', 'next', 'per', 'seem', 'through', 'almost', 'below', 'from', 'thru', 'to', 'of', 'twenty', 'both', 'cry', 'every', 'somewhere', 'hence', 'under', 'cant', 'why', 'everyone', 'among', 'fill', 'is', 'amoungst', 'these', 'fifteen', 'become', 'perhaps', 'even', 'etc', 'part', 'than', 'ie', 'much', 'third', 'indeed', 'was', 'yours', 'any', 'another', 'together', 'whole', 'each', 'if', 'show', 'them', 'whatever', 'describe', 'whereafter', 'eleven', 'and', 'thereafter', 'has', 'three', 'it', 'herself', 'amount', 'up', 'everything', 'before', 'sincere', 'him', 'how', 'that', 'call', 'off', 'seemed', 'we', 'yourself', 'noone', 'while', 'into', 'very', 'several', 'across', 'above', 'be', 'but', 'not', 'could', 'therein', 'ourselves', 'due', 'once', 'hereafter', 'beside', 'hundred', 'no', 'for', 'keep', 'one', 'upon', 'after', 'other', 'or', 'amongst', 'last', 'others', 'serious', 'this', 'a', 'where', 'meanwhile', 'wherever', 'whether', 'mostly', 'an', 'full', 'forty', 'via', 'take', 'eight', 'side', 'you', 'anything', 'more', 'nothing', 'between', 'inc', 'move', 'whoever', 'never', 'am', 'because', 'beyond', 'either', 'except', 'former', 'namely', 'please', 'should', 'without', 'those', 'however', 'two', 'will', 'also', 'done', 'many', 'nor', 'out', 'detail', 'enough', 'thin', 'your', 'latterly', 'whence', 'as', 'yourselves', 'since', 'seems', 'thence', 'put', 'had', 'towards', 'moreover', 'throughout', 'further', 'so', 'toward', 'twelve', 'bill', 'during', 'against', 'still', 'alone', 'us', 'might', 'here', 'whereupon', 'nowhere', 'anywhere', 'within', 'hereupon', 'sometimes', 'became', 'over', 'i', 'onto', 'what', 're', 'although', 'he', 'itself', 'rather', 'latter', 'my', 'go', 'most', 'top', 'seeming', 'fifty', 'his', 'back', 'by', 'own', 'ten', 'then', 'must', 'when', 'none', 'everywhere', 'get', 'are', 'hasnt', 'least', 'system', 'sixty', 'beforehand', 'find', 'such', 'whither', 'anyhow', 'themselves', 'thus', 'something', 'whenever', 'four', 'thereby', 'all', 'whereas', 'otherwise', 'do'
,'why', 'does', 'latterly', 'mostly', 'but', 'otherwise', 'during', 'ourselves', 'forty', 'yourselves', 'hereupon', 'only', 'into', 'she', 'become', 'can', 'two', 'ten', 'ever', 'within', 'call', 'go', 'hundred', 'under', 'up', 'thru', 'well', 'nobody', 'is', 'noone', 'elsewhere', 'must', 'nothing', 'own', 'such', 'thereafter', 'me', 'any', 'several', 'behind', 'beside', 'his', 'your', 'have', 'therein', 'until', 'itself', 'should', 'moreover', 'everything', 'been', 'if', 'cannot', 'show', 'thereupon', 'nowhere', 'this', 'who', 'fifty', 'amount', 'an', 'however', 'since', 'as', 'that', 'whither', 'below', 'please', 'all', 'do', 'anything', 'else', 'used', 'very', 'third', 'name', 'various', 'either', 'i', 'our', 'when', 'will', 'sometimes', 'front', 'done', 'thus', 'herein', 'seemed', 'yet', 'indeed', 'whose', 'least', 'serious', 'last', 'still', 'much', 'another', 'along', 'him', 'nevertheless', 'again', 'many', 'none', 'he', 'nor', 'quite', 'alone', 'although', 'mine', 'same', 'ours', 'take', 'twelve', 'yours', 'meanwhile', 'full', 'due', 'its', 'hereafter', 'thereby', 'becomes', 'has', 'thence', 'toward', 'by', 'himself', 'never', 'fifteen', 'wherein', 'in', 'besides', 'whereby', 'be', 'each', 'could', 'from', 'together', 'would', 'hereby', 'whereafter', 'whether', 'down', 'eleven', 'formerly', 'were', 'and', 'top', 'others', 'see', 'whole', 'less', 'my', 'anyway', 'even', 'keep', 'both', 'over', 're', 'ca', 'side', 'there', 'namely', 'regarding', 'how', 'anyhow', 'upon', 'bottom', 'further', 'wherever', 'hence', 'then', 'more', 'across', 'against', 'five', 'somehow', 'herself', 'whenever', 'someone', 'them', 'had', 'often', 'yourself', 'seem', 'among', 'themselves', 'put', 'are', 'out', 'whoever', 'myself', 'enough', 'doing', 'beyond', 'off', 'those', 'while', 'no', 'onto', 'say', 'just', 'became', 'now', 'make', 'may', 'what', 'made', 'after', 'above', 'part', 'neither', 'everywhere', 'back', 'four', 'hers', 'per', 'first', 'perhaps', 'also', 'too', 'to', 'where', 'without', 'you', 'every', 'afterwards', 'seems', 'on', 'they', 'using', 'becoming', 'around', 'did', 'us', 'except', 'with', 'three', 'through', 'somewhere', 'seeming', 'a', 'towards', 'really', 'was', 'than', 'whatever', 'already', 'always', 'beforehand', 'because', 'anywhere', 'whereupon', 'rather', 'anyone', 'other', 'six', 'sixty', 'being', 'these', 'which', 'her', 'once', 'here', 'about', 'at', 'eight', 'some', 'for', 'latter', 'between', 'whereas', 'former', 'we', 'of', 'the', 'whence', 'something', 'so', 'it', 'most', 'few', 'unless', 'give', 'almost', 'twenty', 'amongst', 'before', 'sometime', 'or', 'their', 'not', 'therefore', 'nine', 'get', 'one', 'empty', 'move', 'whom', 'everyone', 'via', 'throughout', 'though', 'might', 'next', 'am'
,'i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', "you're", "you've", "you'll", "you'd", 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', "she's", 'her', 'hers', 'herself', 'it', "it's", 'its', 'itself', 'they', 'them', 'their', 'theirs', 'themselves', 'what', 'which', 'who', 'whom', 'this', 'that', "that'll", 'these', 'those', 'am', 'is', 'are', 'was', 'were', 'be', 'been', 'being', 'have', 'has', 'had', 'having', 'do', 'does', 'did', 'doing', 'a', 'an', 'the', 'and', 'but', 'if', 'or', 'because', 'as', 'until', 'while', 'of', 'at', 'by', 'for', 'with', 'about', 'against', 'between', 'into', 'through', 'during', 'before', 'after', 'above', 'below', 'to', 'from', 'up', 'down', 'in', 'out', 'on', 'off', 'over', 'under', 'again', 'further', 'then', 'once', 'here', 'there', 'when', 'where', 'why', 'how', 'all', 'any', 'both', 'each', 'few', 'more', 'most', 'other', 'some', 'such', 'no', 'nor', 'not', 'only', 'own', 'same', 'so', 'than', 'too', 'very', 's', 't', 'can', 'will', 'just', 'don', "don't", 'should', "should've", 'now', 'd', 'll', 'm', 'o', 're', 've', 'y', 'ain', 'aren', "aren't", 'couldn', "couldn't", 'didn', "didn't", 'doesn', "doesn't", 'hadn', "hadn't", 'hasn', "hasn't", 'haven', "haven't", 'isn', "isn't", 'ma', 'mightn', "mightn't", 'mustn', "mustn't", 'needn', "needn't", 'shan', "shan't", 'shouldn', "shouldn't", 'wasn', "wasn't", 'weren', "weren't", 'won', "won't", 'wouldn', "wouldn't"
,"he'll", 'they', 'while', 'with', "there's", 'however', 'since', 'could', "why's", 'about', 'during', 'just', "we'd", 'she', 'below', "let's", 'but', 'very', "they're", 'k', 'been', 'can', 'than', 'was', 'a', 'our', "weren't", "when's", "where's", 'by', 'his', "she'd", 'doing', 'me', 'then', 'this', "i'll", "you've", 'yourself', 'before', 'more', 'should', "wasn't", "can't", 'who', 'through', 'were', 'did', 'do', 'their', 'ourselves', 'whom', 'at', 'nor', 'on', 'shall', 'having', 'had', 'her', 'it', "hasn't", "we're", 'off', 'what', 'them', "that's", 'he', 'as', 'these', 'i', 'why', 'or', 'out', 'has', 'most', "aren't", 'be', 'all', 'com', "didn't", 'like', 'between', "we've", "i'd", 'are', 'how', "hadn't", "they've", "shan't", 'herself', 'of', "mustn't", 'there', 'yours', 'hers', 'until', "doesn't", "wouldn't", 'each', "i'm", 'once', 'the', 'myself', 'such', 'again', "he's", 'for', 'no', 'only', "don't", 'my', "they'd", 'too', "you'd", 'ever', 'ours', 'few', "couldn't", 'does', 'if', "she's", "he'd", 'www', "they'll", "you're", 'other', 'being', 'to', 'any', 'your', 'which', 'get', 'over', 'from', 'its', 'himself', 'in', 'ought', 'have', "haven't", 'down', 'him', 'where', "we'll", "won't", "shouldn't", 'http', "i've", 'some', "isn't", 'those', 'yourselves', 'would', 'itself', "who's", 'after', 'also', 'because', 'here', 'own', 'we', 'cannot', 'themselves', 'an', 'further', 'am', "here's", 'and', 'above', 'otherwise', 'you', "how's", "it's", 'same', 'not', 'that', 'against', 'is', 'when', 'else', 'r', "you'll", "what's", 'theirs', 'under', 'both', 'up', "she'll", 'so', 'into'}

스마트폰을 바꾸는 주기가 길어졌다고는 하지만
많은 분들이 집에 안쓰는 스마트폰 하나쯤은 있을 것 같다.

이 스마트폰을 활용할 방법을 생각해보았다
팔기는 가격이 너무 싸고 
CCTV 용도도 아니고 시계용도도 No!
 네비게이션도 별로!

주피터 노트북 서버를 만들자!
스마트 폰으로 웹서버를 만들었다는 글을 본적이 있어서 주피터 노트북도 되겠네!! 라고 생각하여 시작하게 되었다.

이 작업을 하려고 3주 가량 고생했다
작업을 마치고 나니 퇴근후 매일 고생하던 것이 없어져서 허무한 느낌 마저 들었다.
1도 모르는 상태에서 휴리스틱한 방법으로 스마트 폰에 주피터 노트북을 설치하여 외부에서 접속가능 하게 하였다

목적은 성능보다는 언제 어디서나 접속 가능한 나만의 주피터 노트북을 만드는 것

안 쓰는 노트북을 이용해 손쉽게 만들수 있으나
노트북을 계속 켜놓는 것이 마음에 걸렸다 오래된 노트북이라 팬소리도 컸고 전기 문제도 마음에 걸렸다.

삽질했던 방법들과 성공했던 방법들을
빠르게 방법을 기록하겠다.
아직도 이것이 왜 되고 안되는지 모른다 그저 여러 시도들 중에 발견했을 뿐!

준비물
    1.루팅된 안드로이드 스마트폰
    2.체력




루팅된 스마트 폰을 준비한다  방법은  "자신의 스마트폰 기종이름 + 루팅방법" 이라고 구글에 검색

1번링크에서 3번(아파치,php5,mysql설치하기) 전까지 설치한다.
자신의 스마트폰 아키텍쳐에 맞게 설치해야 이상이 없는 것 같다.(추측)
sdcard가 있다면 Mount 하도록 하자

구글 플레이에서 cpu-z 같은 어플을 받아서 아키텍처를 확인한다

내 폰은 삼성 2017 a5 이고 아키텍처는 arm 어쩌구 였다.
(공장 초기화와 리눅스 디플로이 설치를 2주동안 30 번 정도 다시 설치한것 같다.)

ssh 접속하여 
sudo apt update
sudo apt -y upgrade
이거 먼저하고

2번링크에 나온 그대로 따라쳐서 잘되면 좋겠지만 에러가나서 스크립트 내용을 직접 putty에 붙여넣기 하였다. 가상환경 만드는 구문도 직접 타이핑했다.
$(id -u) = 0 구문에 걸리는 거 같았다 뭐가 잘 안되서 사용자 계정에 ROOT 권한 주는 작업을 했는데 그것때문인가? id -u =0 이라는 구분이 뭘 뜻하는지 모르겠다.

파이썬 가상환경 안(source [가상환경] activate)에서 pip 구문을 입력해야한다

그리고 중간에 pandas 모듈 설치시 numpy 설치에러 나서
pip install --upgrade pip
하고 pip install numpy설치후 다시 진행하였다.

매우 오래 걸린다 특히 scipy 부분설치와
사이킷런 부분설치가 오래 걸렸다 중간에 멈춘줄 알았는데 cpu 거의 100 프로 잡아 먹으면서 설치중이어서 기다렸다.
총 5시간 정도 걸린것 같다.

모두 설치한후에
pip install jupyterlab 설치후 3번링크와 4번링크를 참조하여 원격 접속설정을 하고
공유기에서 해당 스마트폰 ip고정할당을 설정하고
포트포워딩 설정을 하여 외부에서 주피터 노트북 서버에 접속 가능하도록 만든다.

리눅스 deploy앱에서 마운트 설정하는 부분에서
필자의 경우 /storage/E79A-1E02 (64GB sdcard)를 입력하여 마운트 하였다

참고로 sd카드 마운트위치에서 주피터 노트북을 실행하니 터미널창에 .android_secure??? 폴더 퍼미션 에러가 계속 나서 폴더하나 만들고 그 위치를 주피터 노트북 기본 위치로 했다.

3번링크에서
c.NotebookApp.notebook_dir = u'/root/DataScience/'

이렇게 위치설정한 것처럼
필자는
c.NotebookApp.notebook_dir = u'/storage/E79A-1E02/jupyterlab'
이렇게 설정함



1번링크에서 만들때 필자는 installation type을 파일로해서 그런지 4기가 밖에 할당되지 않았다 ㅜ


성능을 확인해보자 


삼성 2017 a5 머신에서 아래 코드를 수행한 시간




필자의 노트북에서 확인한 코드 수행시간 



숫자를 8배 정도 해보니 비슷한 시간이 걸렸다 

노트북에서 비해서 성능은 8분의 1이라고 성급하게 결론을 내리겠다

이상!



'Tips' 카테고리의 다른 글

docker couchbase  (0) 2018.02.13

1

공부2019. 1. 5. 22:49
Untitled
In [1]:
from IPython.core.display import display, HTML

display(HTML("<style>.container { width:90% !important; }</style>"))
In [2]:
## 나는 테스트이다.
In [ ]:
 

gensim stopword 
frozenset({'twelve', 'yourselves', 'nor', 'con', 'here', 'our', 'whatever', 'mine', 'then', 'down', 'between', 'everyone', 'eg', 'just', 'yours', 'bill', 'none', 'inc', 'itself', 'be', 'because', 'hereupon', 'toward', 'me', 'six', 'some', 'noone', 'herself', 'in', 'above', 'make', 'thru', 'whereas', 'those', 'hence', 'himself', 'them', 'unless', 'yet', 'couldnt', 'last', 'under', 'he', 'somehow', 'or', 'neither', 'five', 'thereupon', 'part', 'two', 'full', 'using', 'up', 'really', 'wherever', 'as', 'front', 'back', 'nine', 'otherwise', 'sometime', 'after', 'seem', 'someone', 'anything', 'did', 'am', 'towards', 'whom', 'across', 'from', 'whence', 'less', 'wherein', 'have', 'four', 'quite', 'without', 'per', 'and', 'its', 'didn', 'been', 'hereafter', 'before', 'interest', 'please', 'seems', 'nowhere', 'very', 'well', 'but', 'whereafter', 'cannot', 'amongst', 'must', 'namely', 'few', 'hundred', 'behind', 'others', 'whenever', 'serious', 'among', 'even', 're', 'moreover', 'upon', 'of', 'him', 'anyway', 'show', 'alone', 'call', 'to', 'keep', 'since', 'still', 'onto', 'doesn', 'other', 'too', 'un', 'would', 'if', 'describe', 'next', 'had', 'along', 'fire', 'go', 'all', 'my', 'afterwards', 'this', 'so', 'has', 'further', 'seeming', 'sometimes', 'why', 'were', 'there', 'thereby', 'least', 'again', 'they', 'almost', 'several', 'top', 'ltd', 'than', 'another', 'enough', 'beforehand', 'at', 'else', 'get', 'becoming', 'for', 'an', 'various', 'ten', 'nevertheless', 'etc', 'throughout', 'latterly', 'ie', 'mostly', 'don', 'amoungst', 'beyond', 'beside', 'same', 'such', 'nobody', 'below', 'may', 'can', 'thence', 'about', 'out', 'cant', 'that', 'much', 'used', 'perhaps', 'already', 'indeed', 'detail', 'computer', 'does', 'should', 'take', 'which', 'yourself', 'hasnt', 'every', 'also', 'being', 'although', 'thick', 'whereupon', 'name', 'doing', 'each', 'fifteen', 'thereafter', 'with', 'only', 'ever', 'see', 'most', 'own', 'formerly', 'rather', 'de', 'you', 'us', 'she', 'we', 'km', 'when', 'during', 'eleven', 'however', 'regarding', 'against', 'first', 'are', 'together', 'once', 'on', 'often', 'always', 'whether', 'becomes', 'not', 'became', 'anywhere', 'though', 'was', 'sixty', 'who', 'the', 'co', 'besides', 'any', 'never', 'give', 'former', 'around', 'both', 'amount', 'more', 'themselves', 'one', 'empty', 'thin', 'whose', 'by', 'whither', 'could', 'will', 'find', 'whole', 'hers', 'say', 'therefore', 'hereby', 'fill', 'these', 'done', 'through', 'thus', 'her', 'sincere', 'until', 'what', 'might', 'how', 'his', 'latter', 'meanwhile', 'nothing', 'a', 'move', 'side', 'somewhere', 'their', 'is', 'found', 'become', 'elsewhere', 'over', 'ourselves', 'i', 'put', 'no', 'whereby', 'anyone', 'cry', 'eight', 'myself', 'ours', 'everything', 'except', 'forty', 'it', 'your', 'system', 'many', 'off', 'where', 'while', 'within', 'due', 'now', 'third', 'herein', 'twenty', 'whoever', 'into', 'do', 'bottom', 'everywhere', 'something', 'via', 'either', 'fify', 'seemed', 'anyhow', 'three', 'kg', 'therein', 'made', 'mill'})

scikit-learn stopword 
frozenset({'already', 'ltd', 'until', 'on', 'besides', 'becoming', 'de', 'few', 'same', 'which', 'in', 'made', 'whom', 'though', 'being', 'front', 'whereby', 'whose', 'who', 'along', 'anyone', 'have', 'now', 'been', 'often', 'else', 'her', 'formerly', 'found', 'co', 'ever', 'can', 'mill', 'yet', 'hereby', 'always', 'around', 'only', 'eg', 'its', 'thereupon', 'there', 'at', 'nevertheless', 'mine', 'nine', 'give', 'becomes', 'hers', 'see', 'wherein', 'neither', 'nobody', 'sometime', 'six', 'too', 'behind', 'someone', 'himself', 'she', 'down', 'afterwards', 'about', 'with', 'anyway', 'fire', 'couldnt', 'they', 'their', 'first', 'somehow', 'un', 'herein', 'well', 'less', 'elsewhere', 'the', 'cannot', 'myself', 'would', 'therefore', 'thick', 'ours', 'some', 'empty', 'our', 'again', 'con', 'name', 'bottom', 'five', 'interest', 'were', 'me', 'may', 'next', 'per', 'seem', 'through', 'almost', 'below', 'from', 'thru', 'to', 'of', 'twenty', 'both', 'cry', 'every', 'somewhere', 'hence', 'under', 'cant', 'why', 'everyone', 'among', 'fill', 'is', 'amoungst', 'these', 'fifteen', 'become', 'perhaps', 'even', 'etc', 'part', 'than', 'ie', 'much', 'third', 'indeed', 'was', 'yours', 'any', 'another', 'together', 'whole', 'each', 'if', 'show', 'them', 'whatever', 'describe', 'whereafter', 'eleven', 'and', 'thereafter', 'has', 'three', 'it', 'herself', 'amount', 'up', 'everything', 'before', 'sincere', 'him', 'how', 'that', 'call', 'off', 'seemed', 'we', 'yourself', 'noone', 'while', 'into', 'very', 'several', 'across', 'above', 'be', 'but', 'not', 'could', 'therein', 'ourselves', 'due', 'once', 'hereafter', 'beside', 'hundred', 'no', 'for', 'keep', 'one', 'upon', 'after', 'other', 'or', 'amongst', 'last', 'others', 'serious', 'this', 'a', 'where', 'meanwhile', 'wherever', 'whether', 'mostly', 'an', 'full', 'forty', 'via', 'take', 'eight', 'side', 'you', 'anything', 'more', 'nothing', 'between', 'inc', 'move', 'whoever', 'never', 'am', 'because', 'beyond', 'either', 'except', 'former', 'namely', 'please', 'should', 'without', 'those', 'however', 'two', 'will', 'also', 'done', 'many', 'nor', 'out', 'detail', 'enough', 'thin', 'your', 'latterly', 'whence', 'as', 'yourselves', 'since', 'seems', 'thence', 'put', 'had', 'towards', 'moreover', 'throughout', 'further', 'so', 'toward', 'twelve', 'bill', 'during', 'against', 'still', 'alone', 'us', 'might', 'here', 'whereupon', 'nowhere', 'anywhere', 'within', 'hereupon', 'sometimes', 'became', 'over', 'i', 'onto', 'what', 're', 'although', 'he', 'itself', 'rather', 'latter', 'my', 'go', 'most', 'top', 'seeming', 'fifty', 'his', 'back', 'by', 'own', 'ten', 'then', 'must', 'when', 'none', 'everywhere', 'get', 'are', 'hasnt', 'least', 'system', 'sixty', 'beforehand', 'find', 'such', 'whither', 'anyhow', 'themselves', 'thus', 'something', 'whenever', 'four', 'thereby', 'all', 'whereas', 'otherwise', 'do'})

spacy stopword 
{'why', 'does', 'latterly', 'mostly', 'but', 'otherwise', 'during', 'ourselves', 'forty', 'yourselves', 'hereupon', 'only', 'into', 'she', 'become', 'can', 'two', 'ten', 'ever', 'within', 'call', 'go', 'hundred', 'under', 'up', 'thru', 'well', 'nobody', 'is', 'noone', 'elsewhere', 'must', 'nothing', 'own', 'such', 'thereafter', 'me', 'any', 'several', 'behind', 'beside', 'his', 'your', 'have', 'therein', 'until', 'itself', 'should', 'moreover', 'everything', 'been', 'if', 'cannot', 'show', 'thereupon', 'nowhere', 'this', 'who', 'fifty', 'amount', 'an', 'however', 'since', 'as', 'that', 'whither', 'below', 'please', 'all', 'do', 'anything', 'else', 'used', 'very', 'third', 'name', 'various', 'either', 'i', 'our', 'when', 'will', 'sometimes', 'front', 'done', 'thus', 'herein', 'seemed', 'yet', 'indeed', 'whose', 'least', 'serious', 'last', 'still', 'much', 'another', 'along', 'him', 'nevertheless', 'again', 'many', 'none', 'he', 'nor', 'quite', 'alone', 'although', 'mine', 'same', 'ours', 'take', 'twelve', 'yours', 'meanwhile', 'full', 'due', 'its', 'hereafter', 'thereby', 'becomes', 'has', 'thence', 'toward', 'by', 'himself', 'never', 'fifteen', 'wherein', 'in', 'besides', 'whereby', 'be', 'each', 'could', 'from', 'together', 'would', 'hereby', 'whereafter', 'whether', 'down', 'eleven', 'formerly', 'were', 'and', 'top', 'others', 'see', 'whole', 'less', 'my', 'anyway', 'even', 'keep', 'both', 'over', 're', 'ca', 'side', 'there', 'namely', 'regarding', 'how', 'anyhow', 'upon', 'bottom', 'further', 'wherever', 'hence', 'then', 'more', 'across', 'against', 'five', 'somehow', 'herself', 'whenever', 'someone', 'them', 'had', 'often', 'yourself', 'seem', 'among', 'themselves', 'put', 'are', 'out', 'whoever', 'myself', 'enough', 'doing', 'beyond', 'off', 'those', 'while', 'no', 'onto', 'say', 'just', 'became', 'now', 'make', 'may', 'what', 'made', 'after', 'above', 'part', 'neither', 'everywhere', 'back', 'four', 'hers', 'per', 'first', 'perhaps', 'also', 'too', 'to', 'where', 'without', 'you', 'every', 'afterwards', 'seems', 'on', 'they', 'using', 'becoming', 'around', 'did', 'us', 'except', 'with', 'three', 'through', 'somewhere', 'seeming', 'a', 'towards', 'really', 'was', 'than', 'whatever', 'already', 'always', 'beforehand', 'because', 'anywhere', 'whereupon', 'rather', 'anyone', 'other', 'six', 'sixty', 'being', 'these', 'which', 'her', 'once', 'here', 'about', 'at', 'eight', 'some', 'for', 'latter', 'between', 'whereas', 'former', 'we', 'of', 'the', 'whence', 'something', 'so', 'it', 'most', 'few', 'unless', 'give', 'almost', 'twenty', 'amongst', 'before', 'sometime', 'or', 'their', 'not', 'therefore', 'nine', 'get', 'one', 'empty', 'move', 'whom', 'everyone', 'via', 'throughout', 'though', 'might', 'next', 'am'}

nltk stopword 
['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', "you're", "you've", "you'll", "you'd", 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', "she's", 'her', 'hers', 'herself', 'it', "it's", 'its', 'itself', 'they', 'them', 'their', 'theirs', 'themselves', 'what', 'which', 'who', 'whom', 'this', 'that', "that'll", 'these', 'those', 'am', 'is', 'are', 'was', 'were', 'be', 'been', 'being', 'have', 'has', 'had', 'having', 'do', 'does', 'did', 'doing', 'a', 'an', 'the', 'and', 'but', 'if', 'or', 'because', 'as', 'until', 'while', 'of', 'at', 'by', 'for', 'with', 'about', 'against', 'between', 'into', 'through', 'during', 'before', 'after', 'above', 'below', 'to', 'from', 'up', 'down', 'in', 'out', 'on', 'off', 'over', 'under', 'again', 'further', 'then', 'once', 'here', 'there', 'when', 'where', 'why', 'how', 'all', 'any', 'both', 'each', 'few', 'more', 'most', 'other', 'some', 'such', 'no', 'nor', 'not', 'only', 'own', 'same', 'so', 'than', 'too', 'very', 's', 't', 'can', 'will', 'just', 'don', "don't", 'should', "should've", 'now', 'd', 'll', 'm', 'o', 're', 've', 'y', 'ain', 'aren', "aren't", 'couldn', "couldn't", 'didn', "didn't", 'doesn', "doesn't", 'hadn', "hadn't", 'hasn', "hasn't", 'haven', "haven't", 'isn', "isn't", 'ma', 'mightn', "mightn't", 'mustn', "mustn't", 'needn', "needn't", 'shan', "shan't", 'shouldn', "shouldn't", 'wasn', "wasn't", 'weren', "weren't", 'won', "won't", 'wouldn', "wouldn't"]

from wordcloud import WordCloud, STOPWORDS
print(STOPWORDS)

{"he'll", 'they', 'while', 'with', "there's", 'however', 'since', 'could', "why's", 'about', 'during', 'just', "we'd", 'she', 'below', "let's", 'but', 'very', "they're", 'k', 'been', 'can', 'than', 'was', 'a', 'our', "weren't", "when's", "where's", 'by', 'his', "she'd", 'doing', 'me', 'then', 'this', "i'll", "you've", 'yourself', 'before', 'more', 'should', "wasn't", "can't", 'who', 'through', 'were', 'did', 'do', 'their', 'ourselves', 'whom', 'at', 'nor', 'on', 'shall', 'having', 'had', 'her', 'it', "hasn't", "we're", 'off', 'what', 'them', "that's", 'he', 'as', 'these', 'i', 'why', 'or', 'out', 'has', 'most', "aren't", 'be', 'all', 'com', "didn't", 'like', 'between', "we've", "i'd", 'are', 'how', "hadn't", "they've", "shan't", 'herself', 'of', "mustn't", 'there', 'yours', 'hers', 'until', "doesn't", "wouldn't", 'each', "i'm", 'once', 'the', 'myself', 'such', 'again', "he's", 'for', 'no', 'only', "don't", 'my', "they'd", 'too', "you'd", 'ever', 'ours', 'few', "couldn't", 'does', 'if', "she's", "he'd", 'www', "they'll", "you're", 'other', 'being', 'to', 'any', 'your', 'which', 'get', 'over', 'from', 'its', 'himself', 'in', 'ought', 'have', "haven't", 'down', 'him', 'where', "we'll", "won't", "shouldn't", 'http', "i've", 'some', "isn't", 'those', 'yourselves', 'would', 'itself', "who's", 'after', 'also', 'because', 'here', 'own', 'we', 'cannot', 'themselves', 'an', 'further', 'am', "here's", 'and', 'above', 'otherwise', 'you', "how's", "it's", 'same', 'not', 'that', 'against', 'is', 'when', 'else', 'r', "you'll", "what's", 'theirs', 'under', 'both', 'up', "she'll", 'so', 'into'}


'PYTHON' 카테고리의 다른 글

gcp를 이용해서 jupyter notebook / jupyter lab 서버 만들기  (0) 2018.08.27
9장. 객체와 클래스 (가장 중요한 단원)  (0) 2017.09.10
8장. 모듈  (0) 2017.09.10
7장. 함수  (0) 2017.09.10
6장. if 문과 loop문 (p126)  (0) 2017.09.10


gcp를 이용해서 jupyter lab 서버 만들기

구글 가상 인스턴스는 카드 등록하면 1년간 크레딧 범위 안에서 무료로 사용 할 수 있다
gcp를 이용해서 어디서나 접근 가능한 jupyter lab



구글 클라우드 플랫폼 접속




왼쪽위 석삼자 三모양 누르고 




Compute Engine > VM instance > (플러스모양) Create instance



위에 보이는 것은 기존에 만들어 놓은것 
구글 가상 인스턴스는 카드 등록하면 1년간 크레딧 범위 안에서 무료로 사용 할 수 있고 무료기간 현재 147일 남음 


Centos 7,  30기가로 새로 만드려고 했으나 이름 규칙에 어긋난다고함 소문자 , 숫자 , 하이픈만 허용됨

 
Centos 7 , HDD 30 GB






Compute Engine > VM instance에서 해당 vm 머신에서 ssh 를 누르면(5번째그림 참고 vm맨 오른쪽에 버튼이 있음) 웹콘솔로 ssh명령창이 나옴
다음 명령어를 입력



sudo yum install wget # 아나콘다 다운 받기위해
sudo yum install bzip2  # 설치 안하면 아나콘다 설치중 에러
sudo wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh # konlp 사용을 위해 파이썬 3.5버전설치 다른 버전 필요시 구글에 python archives 를검색
sh Anaconda3-4.2.0-Linux-x86_64.sh # 아나콘다 설치

vi .bashrc

# 설치후 안내되는 파이썬 경로를 .bashrc에 추가 
source .bashrc # 실행

jupyter notebook --generate-config # 주피터 노트북 설정 파일 생성

vi <안내되는경로>/.jupyter/jupyter_notebook_config.py # 주피터 노트북 설정 파일 편집
vi 편집기로 위 파일을 연다음 아래 내용을 입력 
c = get_config()

c.IPKernelApp.pylab = 'inline'

c.NotebookApp.open_browser = False

c.NotebookApp.token = ''

pip install konlp 
pip install jupyterlab 등 필요한 패키지 설치


vm 인스턴스의 네트워크 설정에서 외부에서 해당 포트 접속가능 하도록 설정하고 

nohup jupyter lab --ip=0.0.0.0 --port=8888 --no-browser & # 콘솔창을 닫아도 서버가 꺼지지 않게 

<exteranl IP >:8888 로 웹브라우저 접속하면 완성













'PYTHON' 카테고리의 다른 글

English stopword , 영어 불용어  (0) 2018.09.18
9장. 객체와 클래스 (가장 중요한 단원)  (0) 2017.09.10
8장. 모듈  (0) 2017.09.10
7장. 함수  (0) 2017.09.10
6장. if 문과 loop문 (p126)  (0) 2017.09.10


맑은짬뽕 7000원 맛있음 24인 수용가능

진동? 말씀?

기독교2018. 4. 9. 18:50
끈 이론
우리가 파악 할 수 있는 가장 작은 단위

쿼크의 그 안에는 어떤 알 수 없는 파악 할 수 없는 진동이 있다고 어떤 형태인지는 알 수없지만 진동하는 끈 같은것이라고 한다

나는 이게 하나님의 말씀 같다 말씀으로 세상을 창조 하신 하나님의 말씀

렛 데얼 비 라이트!

'기독교' 카테고리의 다른 글

DNA를 보자  (0) 2018.04.09
겸손은 또한 자존감이다.  (0) 2018.04.02
아담의 선악과  (0) 2018.04.02