Files changed (1) hide show
  1. README.md +15 -17
README.md CHANGED
@@ -67,23 +67,21 @@ from transformers import pipeline
67
 
68
  summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
69
 
70
- ARTICLE = """ New York (CNN)When Liana Barrientos was 23 years old, she got married in Westchester County, New York.
71
- A year later, she got married again in Westchester County, but to a different man and without divorcing her first husband.
72
- 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.
73
- 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.
74
- 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
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 = """ from transformers import pipeline
71
+
72
+ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
73
+
74
+ ARTICLE = """ Professor Michael Adams is a specialist in Australian corporate law and international corporate governance. Michael has expertise in financial services regulation, information governance, consumer protection and the broader area of legal technology. Professor Adams is the Academic Dean of the University of New England Law School and from 2007 to 2017 Dean of Law at Western Sydney Law School.
75
+
76
+ He teaches, writes and presents regularly on these topics, as well as a major media commentator. He has published 12 books, 37 chapters, >120 articles and presented at >300 conferences/seminars in the last 30 years.
77
+
78
+ Professor Adams’ has degrees in accounting/economics and law, with postgraduate studies at University College London; he is a Fellow of the Australian College of Educators; the Governance Institute of Australia [FGA/FGIA(Life)] and the Australian Academy of Law; Member of Resolution Institute. He was the UTS Professor of Corporate Law and Perpetual Trustees Australia chair of Financial Services Law.
79
+
80
+ 2001 National President of Governance Institute of Australia and served on the ICSA International Professional Standards Committee. He has been a consultant to national law firm Ashurst and currently, Coleman Grieg Lawyers. Director of GIA, charities Freedom Hub Ltd, ACOM theological college; and the Advisory Board of Information Governance ANZ; previously director of the Australian Pro Bono Centre; and the Australian Academy of Law. Former President of the Australasian Law Academics Association; the Society of Corporate Law Academics and deputy chair of the Australian Council of Law Deans.
81
+
82
+ In 2020 named Academic Lawyer of the Year by Lawyers Weekly in the 20th Australian Law Awards. 2000 Australian University Teacher of the Year in “Law and Legal Studies” and in 2005, recipient of the Governance Institute President’s Award and later made a Life member of both ALTA and the Governance Institute.
83
+
84
+
 
 
85
  """
86
  print(summarizer(ARTICLE, max_length=130, min_length=30, do_sample=False))
87
  >>> [{'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.'}]