mstatt commited on
Commit
1221ea3
1 Parent(s): 82288f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -2
README.md CHANGED
@@ -26,13 +26,34 @@ The goal of this meticulous training process is to equip the model with the abil
26
  ### How to Use
27
  To use this model for text summarization, you can follow these steps:
28
 
29
- ```markdown
30
  from transformers import pipeline
31
 
32
  summarizer = pipeline("summarization", model="Falconsai/text_summarization")
33
- summarizer(text)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ```
35
 
 
36
  Limitations
37
  Specialized Task Fine-Tuning: While the model excels at text summarization, its performance may vary when applied to other natural language processing tasks. Users interested in employing this model for different tasks should explore fine-tuned versions available in the model hub for optimal results.
38
  Training Data
 
26
  ### How to Use
27
  To use this model for text summarization, you can follow these steps:
28
 
29
+ ```python
30
  from transformers import pipeline
31
 
32
  summarizer = pipeline("summarization", model="Falconsai/text_summarization")
33
+
34
+ ARTICLE = """ New York (CNN)When Liana Barrientos was 23 years old, she got married in Westchester County, New York.
35
+ A year later, she got married again in Westchester County, but to a different man and without divorcing her first husband.
36
+ 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.
37
+ 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.
38
+ 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
39
+ 2010 marriage license application, according to court documents.
40
+ Prosecutors said the marriages were part of an immigration scam.
41
+ On Friday, she pleaded not guilty at State Supreme Court in the Bronx, according to her attorney, Christopher Wright, who declined to comment further.
42
+ 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
43
+ Annette Markowski, a police spokeswoman. In total, Barrientos has been married 10 times, with nine of her marriages occurring between 1999 and 2002.
44
+ 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.
45
+ Prosecutors said the immigration scam involved some of her husbands, who filed for permanent residence status shortly after the marriages.
46
+ Any divorces happened only after such filings were approved. It was unclear whether any of the men will be prosecuted.
47
+ The case was referred to the Bronx District Attorney\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\'s
48
+ Investigation Division. Seven of the men are from so-called "red-flagged" countries, including Egypt, Turkey, Georgia, Pakistan and Mali.
49
+ Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force.
50
+ If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18.
51
+ """
52
+ print(summarizer(ARTICLE, max_length=130, min_length=30, do_sample=False))
53
+ >>> [{'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.'}]
54
  ```
55
 
56
+
57
  Limitations
58
  Specialized Task Fine-Tuning: While the model excels at text summarization, its performance may vary when applied to other natural language processing tasks. Users interested in employing this model for different tasks should explore fine-tuned versions available in the model hub for optimal results.
59
  Training Data