123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- # -*- coding: utf-8 -*-
- import re
- import pickle
- from itertools import combinations
- import numpy as np
- def is_unique(string, aimstr):
- """
- :param str: mother string
- :param aimstr: judge aimstr is_unique in str
- :return: True/False,True: str only has one aimstr
- """
- if string.count(aimstr) == 1:
- return True
- else:
- return False
- def is_one_char(string):
- """
- judge one str only contained one char only,eg:#######,***********,sssssssssssss,cccccccccc
- :param str
- :return: True or False
- """
- one_char = string[0]
- nstr = string.replace(one_char, '')
- if nstr == '':
- return True
- else:
- return False
- def is_english_string(string):
- """
- judge one str is all alpha,without any other char which for example chinese
- :param string: str
- :return: True/False,True
- """
- import re
- b = True
- for i in string:
- if re.match(r'[a-zA-Z]', i) == None:
- b = False
- return b
- def is_contain_alpha(string):
- """
- judge one str contains [a-zA-Z] or not
- :param string: str
- :return: True/False,True
- """
- import re
- for i in string:
- if re.match(r'[A-Za-z]|[\u4e00-\u9fa5]', i):
- return True
- else:
- return False
- def capital_in_word(string):
- """
- judge one English word, is there a capital letter in the word except the first letter. eg:'CertainlyB' << B
- :param:string,multiple consecutive letters
- :return: True/False
- """
- for i, v in enumerate(string):
- if v.isupper() and i != 0:
- return True
- else:
- return False
- def other_char_in_word(string):
- """
- judge one English string has Chinese char or other,unormal
- eg:1. xxxx(潇洒)xxxx <<< normal
- :param string: welcome to China... <<< 1.see 2.set第二节 完形填空...
- :return: False/i:index of chinese char
- """
- for i, v in enumerate(string):
- if v >= u'\u4e00' and v <= u'\u9fa5':
- if re.search(r'[\(\s+|\(\s+]' + v, string[i - 1]) or re.search(v + r'[\s+\)|\s+\)]', string[i - 1]) == None:
- return i
- else:
- return False
- def data_split_by_label(x_data, label, split_value=1): # default:split_value=1
- """
- eg: x_data:['w','h','q','love','l','q','y','forever','good','moring']
- label:[1,1,1,0,0,0,0,1,0,0]
- return:[(['w ,h, 'q'],['love','l','q','y']),(['forever'],['good','moring'])]
- :param x_data: list,string content
- :param predict_y:0/1
- :return: ()
- """
- split_index = [k for k, v in enumerate(label) if v == split_value] ##if:[2,3,3,2,3,3,2,3,3,3,3]<<<这样的就分不了了
- result = []
- start = 0
- end = 0
- for k, v in enumerate(split_index):
- key = None
- value = []
- if k < len(split_index) - 1:
- if split_index[k + 1] == split_index[k] + 1:
- pass
- else:
- start = end
- # key = ' '.join(x_data[start:v+1])
- key = x_data[start:v + 1]
- end = split_index[k + 1]
- value = x_data[v + 1:end]
- else:
- # key = ' '.join(x_data[end:v+1])
- key = x_data[end:v + 1]
- value = x_data[v + 1:]
- if len(value) > 0:
- # key_flattern = sum(key,[])
- # value_flattern = sum(value,[])
- result.append((key, value))
- # result[key] = value
- return result
- def compare_two_dict(dict1, dict2):
- """
- crf, re 2 methods get dict1, dict2,to compare:
- 1.2 dicts are the same? >> Yes, return one of them
- 2.if not the same,which one in more normal:(1) has A,B,C,D 4options,has no empty value
- :param dict1:
- :param dict2:
- :return: one much more normal dict
- """
- if dict1 == dict2:
- return dict1
- else:
- if dict2 == None:
- return dict1
- elif dict1 == None:
- return dict2
- else:
- k1 = list(dict1.keys())
- k2 = list(dict2.keys())
- if k1 != k2:
- if len(k1) > len(k2):
- return dict1
- else:
- if len(dict1) == len(dict2):
- if ('@' or '?') in list(dict1.keys()):
- return dict2
- elif ('@' or '?') in list(dict2.keys()):
- return dict1
- else:
- return dict2
- else:
- return dict2
- else:
- v1 = list(dict1.values())
- v2 = list(dict2.values())
- if '' in v1 and '' not in v2:
- return dict2
- elif '' in v2 and '' not in v1:
- return dict1
- else:
- if len([i for i in v1 if i != '']) > len([i for i in v2 if i != '']):
- return dict1
- else:
- return dict2
- def strip_point(string):
- """"
- 去掉字符串前后的..
- """
- string = string.strip()
- if len(string) > 0:
- while re.match(r'[】.\.\))\s_、]', string):
- # while string[0] == '.' or string[0] == '.' or string[0] == ')':
- string = string[1:]
- # while len(re.findall(r'[【\..。_(\s\(]$', string)) > 0:
- # # while string[-1] == '.' or string[-1] == '.':
- # string = string[:-1]
- return string
- def is_consecutive(lst):
- for index, cur in enumerate(lst[1:], start=1):
- if cur != lst[index - 1] + 1:
- return False
- return True
- def del_outlier2(in_lst, max_try=200000):
- in_lst = list(map(int, in_lst))
- num = 0
- for length in list(range(0, len(in_lst) + 1))[::-1]:
- for lst in combinations(in_lst, length):
- if is_consecutive(lst):
- return list(map(str, lst))
- num += 1
- if max_try is not None and num >= max_try:
- return list(map(str, in_lst))
- return list(map(str, in_lst))
- def del_outlier(value_list):
- """
- eg:[2,3,4,39,9] << 删掉离群点,和其他点不连续,且相差>2
- :param value_list: str list
- :return:str list
- """
- int_value_list = sorted([i for i in set(map(int, value_list)) if 0 < i < 150])
- partv = []
- all_partv = []
- for i, intv in enumerate(int_value_list):
- if len(partv) == 0:
- partv.append(intv)
- elif intv == partv[-1] + 1:
- partv.append(intv)
- else:
- if len(partv) > len(all_partv):
- all_partv.clear()
- all_partv.extend(partv)
- elif len(partv) == len(all_partv):
- print("del_outlier有相同长度的连续值:{} and {}".format(partv, all_partv))
- partv = [intv]
- if len(partv) > len(all_partv):
- return list(map(str, partv))
- else:
- return list(map(str, all_partv))
- def list_ele_type(aim_list):
- """
- judge element type of one list
- :param list:
- :return: a new list contains:str,dict,list,tupe and so on type
- """
- type_list = []
- for ele in aim_list:
- if isinstance(ele, str):
- # if type(ele) == 'str':
- type_list.append('str')
- elif isinstance(ele, dict):
- type_list.append('dict')
- elif isinstance(ele, tuple):
- type_list.append('tuple')
- elif isinstance(ele, list):
- type_list.append('list')
- return type_list
- def load_data(x_data, x_vec_path):
- """
- :param x_vec: during trainging,haved saved this file as a pkl
- :return: the data to predict which transformed array
- """
- with open(x_vec_path, 'rb') as f:
- vocab_processor = pickle.load(f)
- x_test = np.array(list(vocab_processor.fit_transform(x_data)))
- return x_test
- def english_alpha_extract(string):
- """
- diffrent type english alpha,capital:
- sz = '21-23DBA,24-27BACD,28-31:DCBA 32-35CACB36-40DGCFE'
- >> [DBA,BACD,DCBA,CACB,DGCFE]
- :param string:
- :return:list
- """
- result = []
- part_alpha = ''
- for i, ss in enumerate(string):
- if ss.lower() != ss:
- part_alpha += ss
- if i == len(string) - 1 or string[i + 1].lower() == string[i + 1]:
- result.append(part_alpha)
- part_alpha = ''
- return result
- def appear_times(strL, aimstr):
- """
- ['1','2','3','1','9',1]
- :param strL:
- :param aimstr: 1
- :return: {0:1,3:2,5:3}
- """
- ind = [k for k, v in enumerate(strL) if v == aimstr]
- times = [t for t in range(1, len(ind) + 1)]
- return dict(zip(ind, times))
- def get_chinese_char(string):
- """
- 大家好,I am LQY ,我爱你们 >>> ['大家好','我爱你们']
- :param string:
- :return:
- """
- result = []
- part_chinese = ''
- for i, ss in enumerate(string):
- if re.match(r'[\u4E00-\u9FA5]', ss) != None:
- part_chinese += ss
- if i == len(string) - 1 or re.match(r'[\u4E00-\u9FA5]', string[i + 1]) == None:
- result.append(part_chinese)
- part_chinese = ''
- return result
- def get_relative_parse_id(parse_L):
- """
- 阅读,完形这样的解析有多个,全都放在一起,且要重新编码,从1开始编码
- """
- parse_id = [int(re.findall('\d+',p[:6])[0]) if len(re.findall('\d+',p[:6])) else 9999 for p in parse_L]
- min_id = min(parse_id)
- nparseL = [v.replace(str(parse_id[k]),str(parse_id[k]-min_id+1),1) for k,v in enumerate(parse_L)]
- parse_str = "\n".join(nparseL)
- return parse_str
- def max_len_series(num_list):
- """
- 获取这个list最长连续递增子序列,再以此序列为基准,生成和num_list一样长的列表并返回
- :param num_list: [int,int,int]
- :return:
- """
- start = 0
- end = -1
- max_iid = ([], 0, 0)
- iid = []
- for k, v in enumerate(map(int,num_list)):
- if len(iid) == 0:
- iid.append(v)
- start = k
- elif v == iid[-1] + 1:
- iid.append(v)
- end = k
- else:
- if len(iid) > len(max_iid[0]):
- max_iid = (iid, start, end)
- iid = [v]
- start = k
- if len(iid) > len(max_iid[0]):
- max_iid = (iid, start, end)
- if max_iid[2] == -1: #都是长度为1:
- return num_list
- else:
- id_list = [max_iid[0][0] - i for i in range(1, max_iid[1]+1)] + max_iid[0] + \
- [max_iid[0][-1] + i for i in range(1, len(num_list)-max_iid[2])]
- return sorted(id_list)
- def word_find_first_line(text_list:list):
- """
- 对直接上传的word文件的txt文本直接结构化,需要把前面非题文的其他说明性文字去掉,需要找到text的第一行
- :param text:原地修改,没有返回值
- :return:
- """
- start_index = -1
- for k,text in enumerate(text_list):
- text = re.sub(r'\s','',text)
- if re.match(r"第.部分|第.小?节|part[IⅠ1]",text):
- start_index = k
- break
- if start_index == -1:
- for k,text in enumerate(text_list):
- ####下面默认首页第一题都是听力或选择题
- if re.search(r"(满分\s*\d)|共\d.{0,3}分",text) is not None and len(re.findall(r"[a-zA-Z]{2,}",text))<2:
- start_index = k
- break
- if start_index == -1 :
- for k,text in enumerate(text_list):
- ####下面默认首页第一题都是听力或选择题
- if re.match(r'1',text) and re.search(r'[\u4e00-\u9fa5]',text)==None and re.findall(r'[A-Za-z]{2,}',text):
- start_index = min(max(0,k-2),15)
- break
- return text_list[max(start_index,0):]
- def split_rule_D(this_line:str,before_4line:list,after_5line:list):
- """
- rule:且前3行分别是A,B,C开头,认为该行为D选项
- 如果D选项后面不是一个新的题干:不是数字开头|后面几行没有A,B,C,D开头/后面几行没有E,F,G开头,则认为this_line下面不是新小题,则需要切分
- 注意:基于此条是D选项来判断,如果确认需要切分,则应该是下一行是切分点,不要搞错了
- 基于格式还原以后,格式还原,都是用\s{4}来连接的
- :param this_line:
- :param before_3_line:
- :param after_3line:
- :return:True:下一行应该切分开 False:不应该切分
- """
- # 如果正好这行的D丢了,c还在就行 ,下一行不要是数字开头
- four_line = "".join(before_4line + [this_line])
- four_line = re.sub(r"[()()]","",four_line)
- four_line = re.sub(r"\s", "", four_line)
- if re.search(r'[D][,..、]',this_line) or re.search(r'[CcG][,.、.].*?\s{4}[,.、.]',this_line) : #要确保这一行是D行
- find_abcd_b = re.findall(r'[A-D][,.、.]',four_line)
- if len(set(find_abcd_b)) >= 2: #用前3行和本行,判断此行是D选项
- # if re.match(r'\d+',after_5line[0]) == None: #下一行不是数字开头,很有可能不是新小题(也可能ocr把数字掉了,所以再用下面几行看是不是选项行来进一步确认)
- s_after_5line = "".join(after_5line)
- s_after_5line = re.sub(r"[()()]", "", s_after_5line)
- find_abcd_aft = re.findall(r'[A-D][,.、.]',s_after_5line)
- find_efg = re.findall(r'[EFG][,.、.]', s_after_5line)
- topic_no_pat = re.compile(r"\d+\s*[,,.。.]")
- ###后面ABCD选项少于2(但实际上可能会掉ABCD.这种,所以还要求后面前两行都不能是topic_no行)
- if len(find_abcd_aft) < 2 \
- and topic_no_pat.match(after_5line[0]) == None \
- and topic_no_pat.match(after_5line[1]) == None \
- and len(find_efg) < 2:#下面没有ABCD或则ABCD出现的次数<2-->匹配上的<2,后面是EFG的话,该行是D,也不是分割线
- return True
- return False
- if __name__ == '__main__':
- a = [' 聊城三中北校高三英语第二次周测\n', ' (150分 120分钟)\n', ' 注意事项:\n', ' 1.答题前,先将自己的姓名、准考证号填写在试题卷和答题卡上,并将准考证号条形码粘贴在答题卡上的指定位置。\n', ' 2.选择题的作答:每小题选出答案后,用2B铅笔把答题卡上对应题目的答案标号涂黑,写在试题卷、草稿纸和答题卡上的非答题区域均无效。\n', ' 3.非选择题的作答:用签字笔直接答在答题卡上对应的答题区域内。写在试题卷、草稿纸和答题卡上的非答题区域均无效。\n', ' 第Ⅰ卷(选择题,共100分)\n', ' 第一部分 听力 (共两节,满分30分)\n', ' 第一节(共5小题;每小题1.5分,满分7.5分)\n', ' 听下面5段对话,每段对话后有一个小题。从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置。听完每段对话后,你都有10秒钟的时间来回答有关小题和阅读下一小题。每段对话仅读一遍。\n', ' 1. What is the woman doing?\n', ' A. Drawing a map. B. Making a travel plan. C. Preparing for a class. \n', ' 2. What time will the speakers see the performance on Saturday?\n', ' A. At 8:00 pm. B. At 7:00 pm. C. At 3:00 pm. \n', ' 3. What does the woman want the man do with the box?\n', ' A. Carry it downstairs. B. Put it in a low position. C. Move it to the upper shelf.\n', ' 4. Where will the woman get the cigarettes for the man? \n', ' A. At the gas station B. At the store. C. At Aunt Mary’s.\n', ' 5. What are the speakers mainly talking about?\n', ' A. A clothes shop. B. A shirt. C. A friend.\n', ' 第二节(共15小题;每小题1.5分,满分22.5分)\n', ' 听下面5段对话或独白,每段对话或独白后有几个小题,从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置。听每段对话或独白前,你将有时间阅读各个小题,每小题5秒钟;听完后,各小题将给出5秒钟的作答时间。每段对话或独白读两遍。\n', ' 听第6段材料,回答第6至7题。\n', ' 6. What mistake did the man make?\n', ' A. He forgot to mail the package to Mr. Wells. \n', ' B. He gave the wrong package to Mr. Wells. \n', ' C. He gave the package to Mr. Rashid.\n', ' 7. Where is Mr. Wells’ group flying?\n', ' A. Australia. B. Lebanon. C. America.\n', ' 听第7段材料,回答第8至9题。\n', ' 8. How long does the woman use the car?\n', ' A. For three weeks. B. For thirteen days. C. For three days. \n', ' 9. Which car does the woman choose at last? \n', ' A. The silver one. B. The black one. C. The red one.\n', ' 听第8段材料,回答第10至12题。 \n', ' 10. What’s the most probable relationship between the speakers?\n', ' A. Teacher and students. B. TV host and guest. C. Classmates.\n', ' 11. What do the Japanese value most according to Jane?\n', ' A. Work. B. Family. C. Friendship.\n', ' 12. What does Jane think is the biggest difference between the two countries?\n', ' A. Weather. B. People. C. Food.\n', ' 听第9段材料,回答第13至16题。 \n', ' 13. What kind of food does the man want to eat?\n', ' A. Thai food. B. Italian food. C. Indian food.\n', ' 14. What does the woman suggest first?\n', ' A. Going to a big city to find the right spices. \n', ' B. Looking around the local market. \n', ' C. Try cooking the food himself. \n', ' 15. Where do the speakers live? \n', ' A. In Australia. B. In America. C. In England. \n', ' 16. Who may the woman ask for help? \n', ' A. The man’s brother. B. The man’s uncle. C. Her mother\n', ' 听第10段材料,回答第17至20题。 \n', ' 17. What is the speaker?\n', ' A. A teacher. B. A student. C. A radio host.\n', ' 18.When will the competition be? \n', ' A. On July 12th. B. On July 20th. C. On July 22th.\n', ' 19. How many members will there be in the team?\n', ' A. 8 B. 10. C. 15.\n', ' 20. How can you get in touch with the speakers?\n', ' A. By fax B. By email. C. By phone.\n', ' 第二部分 阅读理解(共两节,满分40分)\n', ' 第一节(共15小题;每小题2分,满分30分)\n', ' 阅读下列短文,从每题所给的四个选项(A、B、C和D)中,选出最佳选项,并在答题卡上将该项涂黑。\n', ' A\n', ' Four books that will inspire you to travel the world\n', ' \u3000\u3000There’s truly nothing like travel when it comes to gaining perspective and exposing yourself to other cultures. To get you in the adventuring mood, we asked Amazon Senior Editor Chris Schlep to help us come up with a list of books that transport readers to another time and place. Below, see his list of four books that will inspire you to travel around the world.\n', ' \u3000\u3000ITALY: Beautiful Ruins by Jess Walter\n', ' \u3000\u3000This book by the popular author Jess Walters tells a love story that begins on the Italian Coast in the early 60s and eventually appears on the screen in Hollywood. As the settings shift from Italy to Edinburgh to Los Angeles, you will find yourself longing to go as well. Buy it on Amazon. Price: $28.90\n', ' \u3000\u3000SEATTLE: Where You’d Go, Bernadette? by Maria Sample\n', ' \u3000\u3000Maria Sample’s first novel is not exactly a love story to Seattle, but if you read it, you just might want to come here to see if people are really as self-involved as the characters in her book. What really shines through is the strange storytelling and the laughs. Buy it on Amazon. Price: $26.60.\n', ' \u3000\u3000ENGLAND: Wolf Hall by Hilary Mantel\n', ' \u3000\u3000You can’t travel to Thomas Cromwell’s England without a time machine, but reading Hilary Mantel’s prize-winning novel is the next best thing. It will make you long to see the ancient buildings and green grass of the English countryside, much of which is still there. Buy it on Amazon. Price: $ 25.10\n', ' \u3000\u3000NANTUCKET: Here’s to Us by Eli Hildebrand\n', ' \u3000\u3000Eli Hildebrand has built a writing career out of writing about her hometown island of Nantucket. Her latest book is Here’s to Us, which, perhaps not surprisingly, is a great beach read. Buy it on Amazon. Price: $ 30.80\n', ' 21. Which book has been made into a film according to the text?\n', ' A. Here’s to Us B. Wolf Hall C. Beautiful Ruins D. Where You’d Go, Bernadette?\n', ' 22. What is the special feature of the Where You’d Go, Bernadette?\n', ' A. It’s low price B. It’s characters\n', ' C. It’s content about love D. It’s storytelling and laughs\n', ' 23. What are you inspired to do by reading Wolf Hall?\n', ' A. Broaden our eyes. B. Know the foreign culture.\n', ' C. Appreciate the English countryside. D. Experience the joy and sadness of the characters.\n', ' 24. Why is Here’s to Us suitable for reading on the beach?\n', ' A. It needs a time machine B. It’s about hometown island\n', ' C. It’s about ancient buildings D. It exposes yourself to other cultures\n', ' B\u3000\n', ' A little girl who battled against cancer received a special gift on her third birthday, thanks to a creative stranger from Idaho. Jessica Sebastian, owner of Sebastian Design, was contacted by Danielle Munger, whose daughter, Brynn, lost an eye because of cancer. Daniell asked Jessica if she could make a bunny doll with one eye.\n', ' “I make dolls, which is not a heroic profession by any means. But recently I was asked to make a doll for a little girl who is a true superhero,” Jessica wrote.\n', ' “A mama contacted me and asked if I would make a bunny doll with one eye for her two-year-old daughter who loves animals and lost her left eye to cancer. The girl had started to notice that she was different and her sweet mama read articles about a doll which looks like a child can be helpful and therapeutic (有益健康). She wanted her daughter to have a doll that looked like her and only had her light eye. Up to now, I don’t think I’ve ever been asked to create something so lender and meaningful.”\n', ' Brynn received the special gift on March 25 during her family birthday party.\n', ' “She smiled so big and then she could not open the rest of her presents until we got the bunny out of her box and she could show her off to all her cousins and family,” Danielle said.\n', ' That evening, Danielle snapped a photo of Brynn in her wonder woman pajamas looking at the bunny doll happily. She recalled her daughter saying, “She_matches_me!” “My favorite part of this photo is how she is wearing her wonder woman nightgown,” Jessica said. “It perfectly represents the strength and course of this little superhero.”\n', ' 25. Why did Danielle ask Jessica to make a bunny doll with one eye?\n', ' A. To sell it to a disabled girl\n', ' B. To cure her daughter of cancer.\n', ' C. To meet the demand of her daughter\n', ' D. To free her daughter from the feeling of difference\n', ' 26. What can we infer about Danielle from the passage?\n', ' A. She is a thoughtful mother. B. She is good at making bunny dolls.\n', ' C. She believes in her daughter’s cure D. She likes a bunny doll with one eye.\n', ' 27. What did Brynn mean by saying “She matches me!”?\n', ' A. Her mother was comforting her.\n', ' B. She was glad to receive the disabled bunny doll.\n', ' C. She only deserved to own the disabled bunny doll.\n', ' D. She fell down when she was the disabled bunny doll.\n', ' C\n', ' This is a time of year when high school students and their families are thinking hard about college. As seniors, juniors, and parents identify their top choices, discussions typically focus on the college itself. Is the institution small or large? How strong are the academics? What is the social life like? Do I like the campus? Such considerations are important, but they can cover the all-important question: Where will these college years lead?\n', ' Applicants should think seriously about which college on their list can best prepare them for the real world. They should look for campuses that offer well-structured programs to help them form a direction for their lives and develop the capacity to take steps along that path.\n', ' One of the most striking recent phenomena about college graduates in America has been the “boomerang” student: the young person who goes away to college, has a great experience, graduates, and then moves back home for a year or two to figure out what to do with his or her life. This pattern has left many graduates—and their families—wondering whether it makes sense to spend four or more years at college, often at great expense, and finish with no clear sense of who they are or what they want to do next.\n', ' The trend points to one of the great shortcomings of many of our nation’s leading colleges and universities. Structured opportunities to think about life after graduation are rare. The formal curriculum focuses almost universally on the academic disciplines of the arts and sciences. Advising on how various majors connect to pathways into the workplace is typically haphazard(没有条理的). Career planning offices are often shorthanded and marginal(不重要的)to college life.\n', ' It doesn’t need to be this way, and in recent years some of the country’s top colleges have enriched their academic offerings with opportunities for students to gain real-world experiences.\n', ' 28. According to the author, what do typical discussions on college choices ignore?\n', ' A. The function of college education in employment.\n', ' B. The difficulty in finding jobs after graduation.\n', ' C. High school students’ interests.\n', ' D. The academics of college.\n', ' 29. Which accounts for the “trend” mentioned in the fourth paragraph?\n', ' A. Students failing to behave themselves. B. Parents overprotecting their children.\n', ' C. Students choosing majors blindly. D. Schools lacking proper guidance.\n', ' 30. What will be probably discussed in the following paragraph?\n', ' A. Recipes for academic achievements. B. Good academic programs in college.\n', ' C. Academic tips for college students. D. Disadvantages of present college courses.\n', ' 31. What’s the best title for the text?\n', ' A. A good way to choose a college B. A new trend in top colleges\n', ' C. Connect subjects with life beyond college D. Make college one of life’s richest experience\n', ' D\n', ' It was once common to regard Britain as a society with class(阶级) distinction. Each class had unique characteristics.\n', " In recent years, many writers have begun to speak the 'decline of class' and 'classless society' in Britain. And in modern day consumer society everyone is considered to be middle class. \n", ' But pronouncing the death of class is too early. A recent wide-ranging society of public opinion found 90 percent of people still placing themselves in particular class; 73 percent agreed that class was still a vital part of British society; and 52 percent thought there were still sharp class differences. Thus, class may not be culturally and politically obvious, yet it remains an important part of British society. Britain seems to have a love of stratification (分层).\n', " One unchanging aspect of a British person's class position is accent. The words a person speaks tell her or his class. A study of British accents during 1970s found that a voice sounding like a BBC newsreader was viewed as the most attractive voice. Most people said this accent sounded 'educated' and 'soft'. The accents placed at the bottom in this study, on the other hand, were regional(地区的)city accents. These accents were seen as 'common' and 'ugly'. However, a similar study of British accents in the US turned these results upside down and placed some regional accents as the most attractive and BBC English as the least. This suggests that British attitudes towards accent have deep roots and are based on class prejudice.\n", " In recent years, however, young upper middle-class people in London, have begun to adopt some regional accents, in order to hide their class origins. This is an indication of class becoming unnoticed. However, the 1995 pop song 'Common People' puts forward the view that though a middle-class person may 'want to live like common people' they can never appreciate the reality of a working-class life.\n", ' 32. A recent study of public opinion shows that in modern Britain ________. \n', ' A. it is time to end class distinction\n', ' B. most people belong to middle class\n', ' C. it is easy to recognize a person’s class\n', ' D. people regard themselves socially different\n', ' 33. The study in the US showed that BBC English was regarded as _________.\n', ' A. unattractive B. educated\n', ' C. prejudiced D. regional\n', ' 34.British attitudes towards accent _________.\n', ' A. have a long tradition B. are based on regional \n', ' C. are shared by the Americans D. have changed in recent years\n', ' 35. What is the main idea of the passage?\n', ' A. The middle class is expanding \n', ' B. A person’s accent reflects class\n', ' C. Class is a key part of British society\n', ' D. Each class has unique characteristics.\n', ' 第二节 (共5小题;每小题2分,满分10分)\n', ' 根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。\n', ' As we “happen to be” the best creature in the world, it’s our duty to look after other species. Here are some points which might help to protect wildlife. Join organizations like Greenpeace and World Wildlife Fund. They have devoted themselves to protecting the earth and its animals. Many volunteers join organizations like these and work for the environment.36. _________________\n', ' 37. _________________ Don’t buy something made from ivory and things like this. Baby seals(海豹) are hunted for their skin, as it is used to make expensive coats. Don’t buy them. \n', ' 38. _________________You can write a heartfelt and logical letter to the government stating your ideas about this problem and how it can be solved. \n', ' Recycle(回收利用) and reuse. It will reduce the need to have more raw materials to produce something.39._________________ And wild animals’ home will not be destroyed. \n', ' Governments should create more safe zones and national parks for wild animals.40. _________________ Governments should apply strict laws to stop hunting. \n', ' I hope this post is helpful. Share your views about this issue and let your voice be heard.\n', ' A. Let your voice be heard.\n', ' B. Stop hunting for pleasure.\n', ' C. As a result, fewer trees will be cut down.\n', ' D. You can build a bird house and feed local birds.\n', ' E. Refuse fur coats and medicines made from rare animals.\n', ' F. You can find some organizations and join them.\n', ' G. There they will be able to move freely without worrying about hunters.\n', ' 第三部分 英语知识运用(共两节,满分45分)\n', ' 第一节 完形填空 (共20小题;每小题1.5分,满分30分)\n', ' 阅读下面短文,从短文后各题所给的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。\n', ' Body language is the quiet, secret and more powerful language of all! It speaks 41______ than words. According to specialists, our bodies send out more 42 ___ than we realize. In fact, non-verbal communication takes up about 50% of what we really 43 ___ . And body language is particularly 44 ___ when we attempt to communicate across cultures. \n', " Indeed, what is called body language is so 45 ___ a part of us that it's actually often unnoticed. And misunderstandings occur as a result of it. 46 ___ , different societies treat the 47 ___ between people differently. Northern Europeans usually do not like having 48 ___ contact (接触) even with friends, and certainly not with 49 ___ . People from Latin American countries, 50 ___ , touch each other quite a lot. Therefore, it’s possible that in 51 ___ , it may look like a Latino is52 ___ a Norwegian all over the room. The Latino, trying to express friendship, will keep moving' 53 ___ . The Norwegian, very probably seeing this as pushiness, will keep 54 ___ which the Latino will in return regard as 55 ___ . \n", " Clearly, a great deal is going on when people 56 ___ _ . And only a part of it is in the words themselves. And when parties are from 57 ___ cultures, there's a strong possibility of 58 ___ . But whatever the situation, the best 59 ___ is to obey the Golden Rule: treat others as you would like to be 60 ___ .\n", ' <table>\n', ' <tbody>\n', ' <tr>\n', ' <td>\n', ' <table>\n', ' <tbody>\n', ' <tr>\n', ' <td>( )41. A. straighter ( )42. A. sounds ( )43. A. hope ( )44. A. immediate ( )45. A. well ( )46. A. For example ( )47. A. trade ( )48. A. eye ( )49. A. strangers ( )50. A. in other words ( )51. A. trouble ( )52. A. disturbing ( )53. A. closer ( )54. A. stepping forward ( )55. A. weakness ( )56. A. talk ( )57. A. different ( )58. A. curiosity ( )59. A. chance ( )60. A. noticed </td>\n', ' <td>B. louder B. invitations B. receive B. misleading B. far B. Thus B. distance B. verbal B. relatives B. on the other hand B. conversation B. helping B. faster B. going on B. carelessness B. travel B. European B. excitement B. time B. treated </td>\n', ' <td>C. harder C. feelings C. discover C. important C. much C. However C. connection C. bodily C. neighbour C. in a similar wayC. silence C. guiding C. in C. backing away C. friendliness C. laugh C. Latino C. misunderstandingC. result C respected </td>\n', ' <td>D. further D. messages D. mean D. difficult D. long D. In short D. greetings D. telephone D. enemies D. by all means D. experiment D. following D. away D. coming out D. coldness D. think D. rich D. nervousness D. advice D. pleased </td>\n', ' </tr>\n', ' </tbody>\n', ' </table>\n', ' </td>\n', ' </tr>\n', ' </tbody>\n', ' </table>\n', ' 第Ⅱ卷(非选择题,共50分)\n', ' 注意事项:用0.5毫米黑色签字笔将答案写在答题卡上。写在本试卷上无效。\n', ' 第三部分 英语知识运用 (共两节,满分45分)\n', ' 第二节(共10小题;每小题1.5分,满分15分)\n', ' 阅读下面材料,在空白处填入1个适当单词或括号内单词的正确形式。\n', ' There once was a forest filled with happy animals. One day a raccoon (浣熊) found some socks left behind by picnickers, and 61._________(decide) to wear them. They fitted so well, and felt so 62._________ (comfort), that he kept them on. He spent his days 63._________ (walk) through the forest in his new socks.\n', ' Other animals became envious(嫉妒) of the raccoon’s new look and followed his trend. First it was squirrels in 64.__________ (shirt), then rabbits 65.__________hats on, and finally birds wearing underpants!\n', ' Doctor Bear, the forest physician, disapproved and tried to warn the clothes-wearers. But no one listened. Instead, they urged him to follow the 66.__________ (late) trend too.\n', ' Soon, the problems started. The squirrel caught his shirt on a branch and crashed to the ground. The rabbit tried entering his hole while wearing his hat and got stuck. Even the raccoon, thanks to his 67.__________ (bright) colored socks, slipped into the river and almost died.\n', ' When the 68.__________ (injure) animals came to see Doctor Bear, he told them, “Your clothes are killing you. You don’t need 69.__________.”\n', ' Those who listened 70.__________ the doctor’s advice finally understood they didn’t need clothes. They’d only started wearing clothes to make others envy them.\n', ' 第四部分 写作(共两节,满分35分)\n', ' 第一节 应用文写作 (15分) \n', ' (河北衡水中学2017届高三模拟考试)\n', ' 假定你是李华,你的英国朋友Alice对中国艺术感兴趣,特写信请你向她介绍中国传统艺术。请依据下列要点,给其写封回信。\n', ' 要点:1.介绍传统艺术――――年画;\n', ' 2.欢迎Alice来中国体验中国年画的创作。\n', ' 注意:1. 词数80左右。 2. 可适当增加细节,以使行文连贯。\n', ' 提示词:年画Chinese New Year paintings\n', ' Dear Alice,\n', ' ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ \n', ' Yours truly,\n', ' LiHua \n', ' 第二节 读后续写(20分)\n', ' .阅读下面短文,根据所给情节进行续写,使之构成一个完整的故事。\n', ' I was touched through experiences, memories, books, stories, animals, angels, and most of all other people. People have moved me and molded(对……影响重大)me with moments of love and examples of kindness.\n', ' One time on the day before Christmas many years ago when I was a minimum wage mill(工厂)worker, I found myself with very little money and very little time to buy my small children a few simple toys. I knew that they would have to be cheap ones and I hoped my children would like them. I hated not having enough to give them more. I hated being poor. And I hated feeling bad at Christmas rather than happy.\n', " I pulled_into a store parking lot and counted my money again. It wasn't much but maybe I could get something small with it. As I was getting out of the car I noticed the Salvation Army(救世军)bell_ringer at the entrance. I felt bad again because I didn't feel I could spare anything to give him. I started walking towards the entrance when two cars pulled into empty parking spots in front of me. The first was a shiny, new Cadillac and I felt a twinge of jealousy when I saw it. “How nice” I thought, “Would it be to have enough money to buy a car like that.” The second car, though, was an ancient sedan(轿车)more beat-up and rusty than the one I was driving.\n", ' A man hopped(冲)out of the Cadillac and hurried into the store right past the bell ringer without a second glance. Out of the old sedan came a young mother with three small children in tow(紧随着). Her clothes looked as worn out as her car, yet she stopped in front of the bell ringer, smiled, opened her purse, and dropped a bill in his red kettle(钱罐).\n', ' 注意:\n', ' 1.所续写短文的词数应为100左右;\n', ' 2.应使用5个以上短文中标有下划线的关键词语;\n', ' 3.续写部分分为两段,每段的开头语已为你写好;\n', ' 4.续写完成后,请用下划线标出你所使用的关键词语.\n', ' Paragraph 1:\n', ' I stood there for a minute in astonishment._______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ \n', ' Paragraph 2:\n', ' In that second a warmth touched me, my jealousy and hatred(憎恨)left me, and all the love and joy that are Christmas filled me.______________________________________________________________________________________________________________________________________________________________________________________________________________________\n']
- rr = word_find_first_line(a)
- print(rr)
|