Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,40 @@
|
|
1 |
-
---
|
2 |
-
license: unknown
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: unknown
|
3 |
+
---
|
4 |
+
|
5 |
+
How to use:
|
6 |
+
```
|
7 |
+
!pip install transformers
|
8 |
+
|
9 |
+
from transformers import AutoModelForSeq2SeqLM
|
10 |
+
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained("avisena/BART_CV_summarizer")
|
12 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("avisena/BART_CV_summarizer")
|
13 |
+
|
14 |
+
input_text = """summarize: About Four Seasons
|
15 |
+
Four Seasons is powered by our people. We are a collective of individuals who crave to become better, to push ourselves to new heights and to treat each other as we wish to be treated in return. Our team members around the world create amazing experiences for our guests, residents, and partners through a commitment to luxury with genuine heart. We know that the best way to enable our people to deliver these exceptional guest experiences is through a world-class employee experience and company culture.
|
16 |
+
At Four Seasons, we believe in recognizing a familiar face, welcoming a new one and treating everyone we meet the way we would want to be treated ourselves. Whether you work with us, stay with us, live with us or discover with us, we believe our purpose is to create impressions that will stay with you for a lifetime. It comes from our belief that life is richer when we truly connect to the people and the world around us.
|
17 |
+
About the location:
|
18 |
+
Four Seasons Hotels and Resorts is a global, luxury hotel management company. We manage over 120 hotels and resorts and 50 private residences in 47 countries around the world and growing. Central to Four Seasons employee experience and social impact programming is the company’s commitment to supporting cancer research, and the advancement of diversity, inclusion, equality and belonging at Four Seasons corporate offices and properties worldwide. At Four Seasons, we are powered by people and our culture enables everything we do.
|
19 |
+
Staff Accountant
|
20 |
+
The Staff Accountant is responsible for transaction processing, accounting analysis, reporting, balance sheet reconciliations and other administrative duties in the Corporate Finance Department. The Staff Accountant is also involved with continuous process improvements and department projects.
|
21 |
+
The Staff Accountant may be assigned to various functions, including Accounts Payable, Accounts Receivable, General Ledger/Reconciliation, Global Programs, Payroll or Global Entities. As development opportunities arise, the Staff Accountant may rotate through one or more Corporate Finance functions listed above.
|
22 |
+
"""
|
23 |
+
|
24 |
+
inputs = tokenizer.encode(input_text, return_tensors="pt", max_length=1024, truncation=True)
|
25 |
+
|
26 |
+
summary_ids = model.generate(
|
27 |
+
inputs,
|
28 |
+
max_length=512, # Maximum length of the summary
|
29 |
+
min_length=30, # Minimum length of the summary
|
30 |
+
length_penalty=-12.7, # Penalty for longer sequences
|
31 |
+
num_beams=6, # Number of beams for beam search
|
32 |
+
early_stopping=True,
|
33 |
+
temperature=2.0,
|
34 |
+
do_sample=True
|
35 |
+
)
|
36 |
+
|
37 |
+
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
38 |
+
|
39 |
+
print(f"Generated Summary: {summary}")
|
40 |
+
```
|