Update README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
|
|
1 |
---
|
2 |
-
language:
|
3 |
-
- en
|
|
|
4 |
tags:
|
5 |
- summarization
|
6 |
-
|
7 |
-
|
8 |
model-index:
|
9 |
- name: mabrouk/reddit-summarizer-bart
|
10 |
|
@@ -29,24 +31,8 @@ Here is how to use this model with the [pipeline API](https://huggingface.co/tra
|
|
29 |
```python
|
30 |
from transformers import pipeline
|
31 |
summarizer = pipeline("summarization", model="mabrouk/reddit-summarizer-bart")
|
32 |
-
|
33 |
-
A year later, she got married again in Westchester County, but to a different man and without divorcing her first husband.
|
34 |
-
Only 18 days after that marriage, she got hitched yet again. Then, Barrientos declared "I do" five more times, sometimes only within two weeks of each other.
|
35 |
-
In 2010, she married once more, this time in the Bronx. In an application for a marriage license, she stated it was her "first and only" marriage.
|
36 |
-
Barrientos, now 39, is facing two criminal counts of "offering a false instrument for filing in the first degree," referring to her false statements on the
|
37 |
-
2010 marriage license application, according to court documents.
|
38 |
-
Prosecutors said the marriages were part of an immigration scam.
|
39 |
-
On Friday, she pleaded not guilty at State Supreme Court in the Bronx, according to her attorney, Christopher Wright, who declined to comment further.
|
40 |
-
After leaving court, Barrientos was arrested and charged with theft of service and criminal trespass for allegedly sneaking into the New York subway through an emergency exit, said Detective
|
41 |
-
Annette Markowski, a police spokeswoman. In total, Barrientos has been married 10 times, with nine of her marriages occurring between 1999 and 2002.
|
42 |
-
All occurred either in Westchester County, Long Island, New Jersey or the Bronx. She is believed to still be married to four men, and at one time, she was married to eight men at once, prosecutors say.
|
43 |
-
Prosecutors said the immigration scam involved some of her husbands, who filed for permanent residence status shortly after the marriages.
|
44 |
-
Any divorces happened only after such filings were approved. It was unclear whether any of the men will be prosecuted.
|
45 |
-
The case was referred to the Bronx District Attorney\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\'s
|
46 |
-
Investigation Division. Seven of the men are from so-called "red-flagged" countries, including Egypt, Turkey, Georgia, Pakistan and Mali.
|
47 |
-
Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force.
|
48 |
-
If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18.
|
49 |
"""
|
50 |
-
print(summarizer(
|
51 |
-
>>> [{'
|
52 |
```
|
|
|
1 |
+
|
2 |
---
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
thumbnail: "url to a thumbnail used in social sharing"
|
6 |
tags:
|
7 |
- summarization
|
8 |
+
datasets:
|
9 |
+
- dataset: [amazon_reviews_multi](https://huggingface.co/datasets/amazon_reviews_multi)
|
10 |
model-index:
|
11 |
- name: mabrouk/reddit-summarizer-bart
|
12 |
|
|
|
31 |
```python
|
32 |
from transformers import pipeline
|
33 |
summarizer = pipeline("summarization", model="mabrouk/reddit-summarizer-bart")
|
34 |
+
review = """I really like this book. It takes a step-by-step approach to introduce the reader to the IBM Q Experience, to the basics underlying quantum computing, and to the reality of the noise involved in the current machines. This introduction is technical and shows the user how to use the IBM system either directly through the GUI on their website or by running Python code on one's own machine. The text provides examples of small exercises to try and stimulates ideas of new things to try. The IBM Q Exp Qiskit software modules are identified and introduced - Terra, Aer, Ignis, and Aqua, as well as the backends that one can choose to do the computing. The book ends with two great chapters on quantum algorithms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"""
|
36 |
+
print(summarizer(review))
|
37 |
+
>>> [{'summary': 'Liana Barrientos, 39, is charged with two counts of "offering a false instrument for filing in the first degree" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and 2002. She is believed to still be married to four men.'}]
|
38 |
```
|