728x90
728x90

Mecab 설치

pip install eunjeon

Mecab 사용법

 

text = "오늘은 신나는 목요일입니다. 형태소 분석기를 테스트합니다."
m = Mecab()
text = m.pos(text)
print(text)
728x90
728x90

tf.constant()

 

- tf.constant() 함수로 텐서를 만들 수 있음

tf.constant(value, dtype=None, shape=None, name='Const')

 

이것저것 해보기

 

import tensorflow as tf

>>> tf.constant([1,2,3,])

<tf.Tensor: shape=(3,), dtype=int32, numpy=array([1, 2, 3], dtype=int32)>

- dtype 지정

>>> tf.constant([1,2,3],dtype=float)

<tf.Tensor: shape=(3,), dtype=float32, numpy=array([1., 2., 3.], dtype=float32)>

- shape 지정

- value의 shape 에 맞춰서 지정

>>> tf.constant([1,2,3],dtype=float,shape=(3,1))

<tf.Tensor: shape=(3, 1), dtype=float32, numpy=
array([[1.],
       [2.],
       [3.]], dtype=float32)>

 

 

728x90
728x90

행 주석

ctrl + /

범위주석

ctrl + shift + /

주석 해제

ctrl + shift + \
728x90
728x90

처음 이클립스 사용하여 웹 프로젝트를 생성시 web.xml 이 없을경우

 

[프로젝트] 오른쪽 마우스 클릭 -> JavaEE Tools -> Generate Deployment Descriptor Stub 선택

728x90

'Development Study > Servlet & JSP' 카테고리의 다른 글

[Servlet Study]  (0) 2023.09.30
728x90

cmd (관리자 권한 실행 )


netstat -ano | findstr 8080

taskkill /F /pid "pid"

참고 - stackoverflow.com/questions/34253779/tomcat-server-error-port-8080-already-in-use#:~:text=Port%208080%20required%20by%20Tomcat,the%20port%20number(s).

 

Tomcat Server Error - Port 8080 already in use

I received the following error while attempting to execute a Servlet program in Eclipse Mars EE. 'Starting Tomcat v8.0 Sever at localhost' has encountered a problem. Port 8080 required by ...

stackoverflow.com

 

728x90
728x90
728x90

+ Recent posts