From c92fbef1abd7d119a7ec5aa49db64dccd679726d Mon Sep 17 00:00:00 2001 From: venvis <127123047+venvis@users.noreply.github.com> Date: Wed, 1 May 2024 11:53:19 +0200 Subject: [PATCH] Add code for Analyzer class --- cellar/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cellar/README.md b/cellar/README.md index e54ab47..455ef5e 100644 --- a/cellar/README.md +++ b/cellar/README.md @@ -160,17 +160,21 @@ Below are examples for in-memory saving: df = cell.get_cellar(save_file='n', file_format='csv', sd='2022-01-01', max_ecli=1000) df,json = cell.get_cellar_extra(save_file='n', max_ecli=100, sd='2022-01-01', threads=10) ``` +

Create a callback of the instance of the class initiated and pass a list as it's value.

+ ```python -instance=Analyzer(celex_id:str) +import cellar_extractor as cell +instance=cell.Analyzer(celex_id:str) output_list=instance() -print(output_list) +print(output_list) # prints operative part of the Case as a list ``` -

Create a callback of the instance of the class initiated and pass a list as it's value.

+

The Writing Class also takes a celex id , upon initializing the class , through the means of the constructor and writes the content of its operative part into different files , depending on the function called

```python -instance=Writing(celex_id:str) +import cellar_extractor as cell +instance=cell.Writing(celex_id:str) output=instance.to_csv()#for csv output=instance.to_txt()#for txt output=instance.to_json()#for json