-------------------
Quick Summary
-------------------
Hi, I need a custom tool that will help me learn English.
The tool will take a source text, replace certain words in the text, and output the modified sentences in a simple FAQ format.
I prefer a web script I can upload to my web hosting account. A desktop script is also fine as long as it doesn't require installing special software or libraries to run on Windows 10 computers.
--------------------------
Detailed Functionality
--------------------------
The software must accept the following inputs:
1) Source Text
2) List of Words For Replacement
Here's how it should work:
1. Upload a Source Text. For example:
"I like to play video games and to ride in cars. I also enjoy table tennis, basketball, and hockey. Additionally, when bored, I sometimes like to play football, though I rarely do that anymore."
2. Upload a list of Words For Replacement; one word per line. Example:
To
In
Table
Additionally
Though
This list could include dozens or even 100+ words.
3. The software extracts individual sentences from the Source Text, replaces every occurence of a Word For Replacement in each sentence with "[...]", and arranges the new sentences into a simple Q&A. In our example, the final output of the software would be a text file with the following:
Q: I like [...] play video games and [...] ride [...] cars.
A: to, to, in
Q: I also enjoy [...] tennis, basketball, and hockey.
A: table
Q: [...], when bored, sometimes I like to play football, [...] I rarely do that anymore.
A: additionally, though
------------------------
Things to remember
------------------------
(1) Words in the Words For Replacement list should replace only identical words in the Source Text; care must be taken to avoid loose pattern matching.
For example, if the Source Text is:
"I will go to the zoo today."
And the Words For Replacement list includes the word:
To
Then the software should output:
Q: I will go [...] the zoo today.
A: to
It SHOULDN'T output:
Q: I will go [...] the zoo [...]day.
A: to, to
(2) The Source Text will often contain dozens of paragraphs, sometimes hundreds. Sometimes there will be one or two line breaks between paragraphs, other times there won't be any line breaks at all. The software must seamlessly handle the Source Text in every case.
(3) As a rule, sentences in the Source Text are preceded by a space, start with a capital letter, and end with a period. The software must factor in all three of these criteria when determining what constitutes a new sentence. Otherwise, the software will have trouble correctly identifying sentences in cases like this one:
"I want to travel to the U.S.A. to visit my brother."
(This is obviously just one sentence, despite the fact that there are several periods in the middle.)
Thanks!
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
为国外客户做的一个小工具源码。 打包好的程序也可以直接运行,就在dist文件夹中。 此程序用pyqt开发,如需修改,需要用到相应的external tool。 自动生成英语填空题。具体功能请参看readme文件。 SampleInput中有样例输入文件。 img中是图标资源。 通过修改逻辑也可以实现其他类型的填空题生成器。
资源推荐
资源详情
资源评论
收起资源包目录
客户端程序-python pyqt-自动生成英语填空题-考试自动化-试题自动化批量生成 (2000个子文件)
Abidjan 141B
Accra 1KB
Acre 189B
ACT 185B
Adak 8KB
Addis_Ababa 184B
Adelaide 8KB
Aden 166B
Alaska 184B
Aleutian 171B
Algiers 1KB
Almaty 2KB
Amman 7KB
Amsterdam 9KB
Anadyr 2KB
Anchorage 8KB
Andorra 7KB
Anguilla 203B
Antananarivo 185B
Antigua 202B
Apia 5KB
Aqtau 2KB
Aqtobe 2KB
Araguaina 2KB
Arizona 179B
Aruba 182B
Ashgabat 847B
Ashkhabad 177B
Asmara 179B
Asmera 179B
AST4 196B
AST4ADT 187B
Astrakhan 2KB
Asuncion 8KB
Athens 8KB
Atikokan 332B
Atka 172B
Atlantic 184B
Atyrau 2KB
Auckland 8KB
Azores 9KB
Baghdad 2KB
Bahia 2KB
Bahia_Banderas 6KB
Bahrain 166B
BajaNorte 185B
BajaSur 186B
Baku 2KB
Bamako 179B
Bangkok 174B
Bangui 173B
Banjul 179B
Barbados 413B
Barnaul 2KB
Beirut 8KB
Belem 996B
Belfast 177B
Belgrade 7KB
Belize 2KB
Berlin 8KB
Bermuda 8KB
Beulah 8KB
Bishkek 2KB
Bissau 169B
Blanc-Sablon 331B
Blantyre 178B
Boa_Vista 1KB
Bogota 237B
Boise 8KB
Bougainville 270B
Bratislava 180B
Brazzaville 178B
Brisbane 651B
Broken_Hill 8KB
Brunei 175B
Brussels 9KB
Bucharest 8KB
Budapest 8KB
Buenos_Aires 2KB
Buenos_Aires 234B
Bujumbura 179B
Busingen 178B
Cairo 4KB
Calcutta 173B
Cambridge_Bay 7KB
Campo_Grande 7KB
Canary 6KB
Canberra 190B
Cancun 1KB
Cape_Verde 237B
Caracas 274B
Casablanca 2KB
Casey 316B
Catamarca 2KB
Catamarca 222B
Cayenne 178B
Cayman 180B
Center 8KB
Central 186B
Central 179B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
每日出拳老爷子
- 粉丝: 1792
- 资源: 705
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功