Update README.md
#20
by
shanzay
- opened
README.md
CHANGED
@@ -67,23 +67,11 @@ from transformers import pipeline
|
|
67 |
|
68 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
69 |
|
70 |
-
ARTICLE = """
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
2010 marriage license application, according to court documents.
|
76 |
-
Prosecutors said the marriages were part of an immigration scam.
|
77 |
-
On Friday, she pleaded not guilty at State Supreme Court in the Bronx, according to her attorney, Christopher Wright, who declined to comment further.
|
78 |
-
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
|
79 |
-
Annette Markowski, a police spokeswoman. In total, Barrientos has been married 10 times, with nine of her marriages occurring between 1999 and 2002.
|
80 |
-
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.
|
81 |
-
Prosecutors said the immigration scam involved some of her husbands, who filed for permanent residence status shortly after the marriages.
|
82 |
-
Any divorces happened only after such filings were approved. It was unclear whether any of the men will be prosecuted.
|
83 |
-
The case was referred to the Bronx District Attorney\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\'s
|
84 |
-
Investigation Division. Seven of the men are from so-called "red-flagged" countries, including Egypt, Turkey, Georgia, Pakistan and Mali.
|
85 |
-
Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force.
|
86 |
-
If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18.
|
87 |
"""
|
88 |
print(summarizer(ARTICLE, max_length=130, min_length=30, do_sample=False))
|
89 |
>>> [{'summary_text': '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.'}]
|
|
|
67 |
|
68 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
69 |
|
70 |
+
ARTICLE = """ It’s generally prohibitive for IoT devices with restricted computation, memory, radio bandwidth, and battery resource to execute computational-intensive and latency-sensitive security
|
71 |
+
tasks especially under heavy data streams [7]. However, most existing security solutions generate
|
72 |
+
heavy computation and communication load for IoT devices, and outdoor IoT devices such as
|
73 |
+
cheap sensors with light-weight security protections are usually more vulnerable to attacks than
|
74 |
+
computer systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
"""
|
76 |
print(summarizer(ARTICLE, max_length=130, min_length=30, do_sample=False))
|
77 |
>>> [{'summary_text': '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.'}]
|