반응형
반응형

"Nanook of the North" (1922) - Robert Flaherty - Original Silent Version, 이누잇 '나눅', 에스키모

youtu.be/3IAcRjBq93Y

 

반응형
반응형

일반적으로 낙관론자들은 비관론자에 비해
신체가 더 건강하고 심리적으로도 행복하다.
낙관론자는 목표 달성을 시작한 뒤,
상황이 어려워지더라도 계속 해 나갈 가능성이 훨씬 크다.
이 모든 것이 오랜 시간 더해지면, 인생의 밝은 면을 보는 사람들이
개인적인 삶과 직업적 삶 모두에서 특히 큰 성공을 거둔다.
- 리처드 와이즈만, ‘우리는 달에 가기로 했다’에서


우리가 가능하다고, 또는 불가능하다고 믿는 것은
우리의 행동을 결정하고, 우리의 성공도 좌우하게 됩니다.
무조건적인 낙관과 긍정이 항상 좋은 것은 아닙니다.
‘긍정적으로 구상하고, 비관적으로 계획하며, 낙관적으로 실행하라.’는
말도 함께 새겨봅니다.

반응형
반응형

긴 머리, 짧은 치마,
빨간 립스틱, 엄마는 스무 살에
나를 낳고 이십대가 없는 삶을 보냈다.
어쩌면 엄마에게 짧은 치마와 빨간 립스틱은
자유로운 젊음으로 대변되는, 엄마가
가지지 못한 것이자 로망이
아니었을까. 나에게도
그런 것이 있을까.
어떤 걸까.


- 박지현의《바람이 분다. 걸어야겠다》중에서 -


* 추억으로 남은
어머니의 이십대를 다시 그려봅니다.
사진으로 남은 아내의 이십대를 그려봅니다.
공통점이 있습니다. 긴 머리, 짧은 치마, 빨간 립스틱...
촌티와 빈티가 뒤섞인, 그러나 젊음과 풋풋함이
가득한 싱그러운 모습입니다. 그 시절로
다시 돌아갈 수 없는 것이
아쉽습니다.

반응형

'아침편지' 카테고리의 다른 글

미리 걱정하는 사람  (0) 2020.12.18
건성으로 보지 말라  (0) 2020.12.17
세르반테스는 왜 '돈키호테'를 썼을까  (0) 2020.12.15
대배우 신영균과 그의 어머니  (0) 2020.12.14
인생이라는 파도  (0) 2020.12.14
반응형

style cloud 설정

 

> pip install stylecloud

 

 

- file_path: 입력할 데이터를 텍스트 문서로 지정합니다.

- text: 입력할 데이터를 딕셔너리 자료형으로 지정합니다.

- font_path: 워드클라우드를 그릴 path를 지정합니다.

- size: 사이즈를 지정, (1024, 512)과 같은 형식으로 입력합니다.

- background_color: 배경색을 지정한다. 색이름을 입력하면 된다. ( 예) white )

- icon_name: 어떤 모양으로 그릴 지 입력합니다. fab fa-twitter(트워터 모양), fas fa-dog(강아지), fas fa-flag(깃발), fas fa-fish(물고기) 등이 있다. 띄어쓰기 앞은 폰트를 의미하고, 뒤에는 모양을 의미한다. 그릴 수 있는 모양은 가지수가 좀 많은데, stylecolud패키지가 설치된 폴더에서 static폴더 밑에 fontawesome.min.css파일을 확인하면 알 수 있다.

- font_path: 폰트를 지정한다.

- output_name: 결과를 파일로 저장한다.

 

Generate Modern Stylish Wordcloud : towardsdatascience.com/generate-modern-stylish-wordcloud-with-stylecloud-9cbb059696d2

 

Generate Modern Stylish Wordcloud with stylecloud

But deep down, all of us have always wished for modern-stylish-beautiful wordclouds. That wish has become true with this new python…

towardsdatascience.com

파이썬 wordcloud를 사용한 한글 명사 시각화 :  liveyourit.tistory.com/58

 

파이썬 wordcloud를 사용한 한글 명사 시각화

파이썬 wordcloud는 중요한 단어나 키워드를 시각화해서 보여주는 시각화 도구이다. wordcloud 자체적으로 빈도수를 계산하는 기능이 있다고 하지만 아무래도 한글의 특성이 있다보니, 나는 한글 명

liveyourit.tistory.com

 

#워드 클라우드, 파이썬에서 이쁘게 그리는 방법은 tariat.tistory.com/854?category=678887

 

워드 클라우드, 파이썬에서 이쁘게 그리는 방법은?!

빅데이터가 많은 사람들에게 관심을 받기 시작할 때 많이 볼 수 있었던 것 중에 하나로 워드 클라우드가 있다. 워드 클라우드는 단어별 빈도수를 기준으로 한 단순한 시각화에 불과하지만, 그림

tariat.tistory.com

 

반응형
반응형

wordcloud시 불용어 지정

>pip install wordcloud


from wordcloud import WordCloud

texts = ['이것 은 예문 입니다', '여러분 의 문장을 넣 으세요']
keywords = {'이것':5, '예문':3, '단어':5, '빈도수':3}

wordcloud = WordCloud()
wordcloud = wordcloud.generate_from_text(texts)
wordcloud = wordcloud.generate_from_frequencies(keywords)

###########################################

from wordcloud import WordCloud
from wordcloud import STOPWORDS

stopwords = {'은', '입니다'}

wordcloud = WordCloud(stopwords=stopwords)
wordcloud = wordcloud.generate_from_text(texts)

keywords.pop('영화')
keywords.pop('관람객')
keywords.pop('너무')
keywords.pop('정말')

from wordcloud import WordCloud

wordcloud = WordCloud(
    width = 800,
    height = 800
)

wordcloud = wordcloud.generate_from_frequencies(keywords)

font_path = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf'

from wordcloud import WordCloud

wordcloud = WordCloud(
    font_path = font_path,
    width = 800,
    height = 800
)
wordcloud = wordcloud.generate_from_frequencies(keywords)



from wordcloud import WordCloud

wordcloud = WordCloud(
    font_path = font_path,
    width = 800,
    height = 800
)
wordcloud = wordcloud.generate_from_frequencies(keywords)



%matplotlib inline
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(10, 10))
plt.imshow(array, interpolation="bilinear")
plt.show()
fig.savefig('wordcloud_without_axisoff.png')
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt 
 
stopwords = set(STOPWORDS) 
stopwords.add('워드클라우드') 
 
wordcloud = WordCloud(font_path='font/NanumGothic.ttf',stopwords=stopwords,background_color='white').generate(text)
 
 

 

반응형
반응형

sorted, 문자열 길이로 정렬, 한글 정렬

the_list.sort() # sorts normally by alphabetical order
the_list.sort(key=len, reverse=True) # sorts by descending length


the_list.sort(key=lambda item: (-len(item), item))




#########################################


n = ['aaa', 'bbb', 'ccc', 'dddd', 'dddl', 'yyyyy']

for i in reversed(sorted(n, key=len)):
       print i
       
       
for i in sorted(n, key=len, reverse=True):
        print i

 

-Sort your list by alpha order, then by length.

See the following exmple:

>>> coursesList = ["chemistry","physics","mathematics","art"]
>>> sorted(coursesList,key=len)
['art', 'physics', 'chemistry', 'mathematics']
>>> coursesList.append("mopsosa")
>>> sorted(coursesList,key=len)
['art', 'physics', 'mopsosa', 'chemistry', 'mathematics']
>>> coursesList.sort()
>>> sorted(coursesList,key=len)
['art', 'mopsosa', 'physics', 'chemistry', 'mathematics']
반응형

+ Recent posts