Commit 921166d1 authored by Arkadiusz Janz's avatar Arkadiusz Janz

Update README.md

parent ee3c0efd
......@@ -110,8 +110,8 @@ Token manipulation
```python
>>> tagset = cclutils.get_tagset('nkjp')
>>> pos = get_pos(token, tagset)
subst:pl:inst:f
>>> get_pos(token, tagset)
'subst:pl:inst:f'
```
......@@ -119,14 +119,28 @@ subst:pl:inst:f
```python
>>> tagset = cclutils.get_tagset('nkjp')
>>> pos = get_pos(token, tagset, main_only=True)
subst
>>> get_pos(token, tagset, main_only=True)
'subst'
```
3. Get coarse-grained PoS
3. Get coarse-grained PoS (NKJP only for now)
```python
>>> tagset = cclutils.get_tagset('nkjp')
>>> pos = get_coarse_pos(token, tagset, main_only=True)
noun
>>> get_coarse_pos(token, tagset, main_only=True)
'noun'
```
4. Convert to coarse-grained PoS (NKJP only for now)
```python
>>> convert_to_coarse_pos('subst')
'noun'
```
5. Get token lemma
```python
>>> get_lexeme_lemma(token)
'samolot'
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment