-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from kimsehwan96/master
release v1.0.3
- Loading branch information
Showing
16 changed files
with
86 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,4 +119,7 @@ dmypy.json | |
.pyre/ | ||
|
||
# automatic document build file | ||
docs/_site | ||
docs/_site | ||
|
||
#idea | ||
.idea/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
# 설치 방법 | ||
|
||
설치 방법에 대해서 소개합니다. | ||
## pip install | ||
|
||
1. pip를 이용하여 설치하는 방법 (pip command) | ||
|
||
```console | ||
pip install pyjosa | ||
``` | ||
|
||
2. pip를 이용하여 설치하는 방법 (python3 command) | ||
|
||
```console | ||
python3 -m pip install pyjosa | ||
``` | ||
|
||
3. 최신 버전 설치 방법(업데이트) | ||
|
||
```console | ||
python3 -m pip install pyjosa -U | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,49 @@ | ||
# 사용 예시 | ||
# 간단한 사용 방법 | ||
|
||
사용 예시에 대해 소개합니다. | ||
```python | ||
from pyjosa.josa import Josa | ||
|
||
print(Josa.get_josa("철수", "은")) # 는 | ||
print(Josa.get_josa("오리", "을")) # 를 | ||
print(Josa.get_josa("닭", "는")) # 은 | ||
print(Josa.get_josa("산", "으로")) # 으로 | ||
print(Josa.get_josa("명예", "과")) # 와 | ||
print(Josa.get_josa("물", "나")) # 이나 | ||
# 사람 이름 + 이가/가 를 구분하기 위해서는 조사부분에 '이가'를 입력합니다. | ||
print(Josa.get_josa("예나", "이가")) # 가 | ||
print(Josa.get_josa("세환", "이가")) # 이가 | ||
|
||
print(Josa.get_full_string("철수", "은")) # 철수는 | ||
print(Josa.get_full_string("오리", "을")) # 오리를 | ||
print(Josa.get_full_string("닭", "는")) # 닭은 | ||
print(Josa.get_full_string("산", "으로")) # 산으로 | ||
print(Josa.get_full_string("명예", "과")) # 명예와 | ||
print(Josa.get_full_string("물", "나")) # 물이나 | ||
# 사람 이름 + 이가/가 를 구분하기 위해서는 조사부분에 '이가'를 입력합니다. | ||
print(Josa.get_full_string("예나", "이가")) # 예나가 | ||
print(Josa.get_full_string("세환", "이가")) # 세환이가 | ||
``` | ||
|
||
# 유용한 사용 방법 | ||
|
||
```python | ||
from pyjosa.josa import Josa | ||
|
||
subject = '철수' | ||
obj = '산' | ||
|
||
full_string = f'{Josa.get_full_string(subject, "은")} {Josa.get_full_string(obj, "를")} 간다' | ||
|
||
print(full_string) # 철수는 산을 오른다 | ||
``` | ||
|
||
```python | ||
from pyjosa.josa import Josa | ||
|
||
subjects = ['철수', '세환', '길동'] | ||
obj = ['산', '바다', '집'] | ||
|
||
for i, v in enumerate(subjects): | ||
print(f'{Josa.get_full_string(v, "은")} {Josa.get_full_string(obj[i], "를")} 간다') | ||
|
||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name = 'pyjosa', | ||
version = '1.0.2', | ||
description = '한국어 조사 처리 패키지', | ||
author = 'sehwan.kim', | ||
author_email = 'sehwan.kim@ingkle.com', | ||
url = 'https://github.com/kimsehwan96/pyjosa', | ||
packages = find_packages(exclude=[]), | ||
name='pyjosa', | ||
version='1.0.3', | ||
description='한국어 조사 처리 패키지', | ||
author='sehwan.kim', | ||
author_email='sehwan.kim@ingkle.com', | ||
url='https://github.com/kimsehwan96/pyjosa', | ||
packages=find_packages(exclude=[]), | ||
license='MIT', | ||
install_requires=[], | ||
classifiers=[ | ||
'Programming Language :: Python :: 3.7' | ||
], | ||
package_data = {}, | ||
package_data={}, | ||
zip_safe=False, | ||
keyword = ['pypi', 'korea'], | ||
) | ||
keyword=['pypi', 'korea'], | ||
) |