반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- COALESCE
- java bigdecimal
- JavaScript
- PostgreSQL
- Jenkins
- chartjs
- codedeploy error
- 도커
- SQL
- bootstrap
- Kafka
- or some instances in your deployment group are experiencing problems.
- chart.js
- Airflow
- VPN
- codedeploy
- Python
- aws cicd
- IntelliJ
- AWS CI/CD 구축하기
- kubeflow
- aws
- node
- docker
- Flux
- Spring Error
- redis
- Spring
- codebuild
- codepipeline
Archives
- Today
- Total
Small Asteroid Blog
[python] 명사 분석에서 한글자 제거하기 본문
728x90
리스트일 때
for i,v in enumerate(noun_list):
# print('noun_list > ',i,v)
if len(v)<2:
del noun_list[i]
# noun_list.pop(i)
print('명사 분석 한글자 제거 : ',noun_list)
이차원 배열일 때
for i,v in enumerate(noun_list):
# print('noun_list > ',i,v)
for j,k in enumerate(v):
if len(k)<2:
# print('=== > ',i,' , ',j,k, noun_list[i][j])
del noun_list[i][j]
# print('명사 분석 한글자 제거 : ',noun_list)
728x90
반응형