Commit 81861628 authored by Arkadiusz Janz's avatar Arkadiusz Janz

Update README.md

parent 038e8a00
......@@ -15,6 +15,17 @@ echo 'deb https://apt.clarin-pl.eu/ /' > /etc/apt/sources.list.d/clarin.list
apt-get update && apt-get install corpus2-python3.6
```
It is also possible to use a docker:
```
FROM clarinpl/python:3.6
RUN apt-get update && apt-get install -y \
corpus2-python3.6
RUN pip install --upgrade pip && pip install cclutils
```
Install
=======
......@@ -168,4 +179,19 @@ True
>>> token.set_wa(False)
>>> token.after_space()
False
```
Sentence manipulation
=====================
1. Prints out sentences of a given document
```python
document = cclutils.read('./example.xml')
sentences = (sentence for paragraph in document.paragraphs()
for sentence in paragraph.sentences())
for sentence in sentences:
print(cclutils.sentence2str(sentence))
```
\ 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