将视频的字幕文件(.srt)转换为文本文件(祛除时间行)

给定目录下,所有字幕文件,批量转换

参考文件

https://stackoverflow.com/questions/51073045/parsing-transcript-srt-files-into-readable-text

https://pythongeeks.org/rename-files-in-python/

https://github.com/byroot/pysrt

 

import pysrt

import os

dirName='D:/pdata/python_data/srt_data/data_science_foundation/'

for filename in os.listdir(dirName):

    infile=dirName+filename

    subs = pysrt.open(infile,encoding='utf-8')

    outfile = infile[:-4] + '.txt'    

    f = open(outfile, 'w',encoding='utf-8')

    for i in range(len(subs)):

      f.write(subs[i].text)

    f.close()
print('covert %d srt file to txt file' % (i+1)

 

---------

covert 67 srt file to txt file

  

 

 

听了得到app,卓克.科技参考   259 | 老生常谈的口罩问题
 
 卓克的总结是:
1在病毒浓度较高的环境里,通过普通外科口罩被吸入的病毒就足以导致感染;在病毒浓度较低的环境里,戴口罩的人就安全很多。
2在防止病毒传染给其他人方面,N95口罩和外科口罩不相上下,而想防止被感染,最好还是佩戴N95口罩。
3要想从科上严谨地证实一个观念的是非常困难的,既要有数学模型、实测结果,还要与现实高度吻合。
 

Cheng, Y., Ma, N., Witt, C., Rapp, S., Wild, P. S., Andreae, M. O., Pöschl, U., & Su, H. (2021). Face Masks Effectively Limit the Probability of SARS-CoV-2 Transmission. Science, 372(6549), 1439–1443. https://doi.org/10.1126/science.abg6296
 

Masking out air sharing

The effectiveness of masks in preventing the transmission of severe acute respiratory syndrome coronavirus 2 has been debated since the beginning of the COVID-19 pandemic. One important question is whether masks are effective despite the forceful expulsion of respiratory matter during coughing and sneezing. Cheng et al. convincingly show that most people live in conditions in which the airborne virus load is low. The probability of infection changes nonlinearly with the amount of respiratory matter to which a person is exposed. If most people in the wider community wear even simple surgical masks, then the probability of an encounter with a virus particle is even further limited. In indoor settings, it is impossible to avoid breathing in air that someone else has exhaled, and in hospital situations where the virus concentration is the highest, even the best-performing masks used without other protective gear such as hazmat suits will not provide adequate protection.

Science, abg6296, this issue p. 1439

Abstract

Airborne transmission by droplets and aerosols is important for the spread of viruses. Face masks are a well-established preventive measure, but their effectiveness for mitigating severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) transmission is still under debate. We show that variations in mask efficacy can be explained by different regimes of virus abundance and are related to population-average infection probability and reproduction number. For SARS-CoV-2, the viral load of infectious individuals can vary by orders of magnitude. We find that most environments and contacts are under conditions of low virus abundance (virus-limited), where surgical masks are effective at preventing virus spread. More-advanced masks and other protective equipment are required in potentially virus-rich indoor environments, including medical centers and hospitals. Masks are particularly effective in combination with other preventive measures like ventilation and distancing.

 
F1.large 2
 
 
F4.large
 
 
 
听了得到app,卓克.科技参考   258 | 蛋白质数据库公开的意义
 
在2021年7月22日,DeepMind欧洲分子生物学实验室(European Bioinformatics Institute)联合宣布,两家合作,用自己开发的人工智能分析工具AlphaFold2预测了36.5万种蛋白质的结构,然后把这些结果做成数据库,免费给全球所有科研人员使用。
 
 alphafold Q8W3K0
 
 
这不仅会推动生物学相关的研究,也在改变科学研究的面貌——人工智能、数据科学可能带来科学研究领域划时代的变革。

1.  论文全文
Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S. A. A., Ballard, A. J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., … Hassabis, D. (2021). Highly Accurate Protein Structure Prediction with Alphafold. Nature, 1–11. https://doi.org/10.1038/s41586-021-03819-2

Proteins are essential to life, and understanding their structure can facilitate a mechanistic understanding of their function. Through an enormous experimental effort1–4, the structures of around 100,000 unique proteins have been determined5, but this represents a small fraction of the billions of known protein sequences6,7. Structural coverage is bottlenecked by the months to years of painstaking effort required to determine a single protein structure. Accurate computational approaches are needed to address this gap and to enable large-scale structural bioinformatics. Predicting the 3-D structure that a protein will adopt based solely on its amino acid sequence, the structure prediction component of the ‘protein folding problem’8, has been an important open research problem for more than 50 years9. Despite recent progress10–14, existing methods fall far short of atomic accuracy, especially when no homologous structure is available. Here we provide the first computational method that can regularly predict protein structures with atomic accuracy even where no similar structure is known. We validated an entirely redesigned version of our neural network-based model, AlphaFold, in the challenging 14th Critical Assessment of protein Structure Prediction (CASP14)15, demonstrating accuracy competitive with experiment in a majority of cases and greatly outperforming other methods. Underpinning the latest version of AlphaFold is a novel machine learning approach that incorporates physical and biological knowledge about protein structure, leveraging multi-sequence alignments, into the design of the deep learning algorithm.
PDF格式论文全文
 
 deep相关博客文章
 
 

Callaway, E. (2020). ‘It will change everything’: DeepMind’s AI makes gigantic leap in solving protein structures. Nature, 588(7837), 203–204. https://doi.org/10.1038/d41586-020-03348-4
alpha fold2

2. alphafold 开源内容
 
2.1 alphafold protein structure database
 
alphafold protein structure database
 
 
 
 
2.2 alphafold open source code
 
github alphafold
 

 
3. alpha fold项目介绍
 
 
 about alphafold
 
 
 
 

 1.准备用于gif动图的图片

https://graphics.reuters.com/OLYMPICS-2020/EXPLAINER/gjnvwnlwgpw/index.html#section-medals

 explainer2

archery

 handball

sailing

 

shooting


2.在线制作gif动图

2.1 访问网址https://gif.imageonline.co/

gif01

 

 

 2.2上传准备好的图片

保证同一个尺寸,例如本例都是600*600

gif02

 

 

 

2.3修改gif参数

  • 图片切换的时间间隔
  • 添加文字
  • 修改gif图片尺寸

gif02

 

 

 

 

2.4预览gif图效果

  • 如果满意,就下载gif图
  • 如果不满意,返回2.3进一步调整参数

gif04

 

 

 

 

2.5最终结果

olympics2020reuters

 

 

 

 

A4 paper size in different values.

A4 size in different values. The links below give you an overview. You will find the exact numbers for Micrometres (μm), Millimetres (mm), Centimetres (cm), Metres (m), Thou (th), Inches (in), Feet (ft), Yards (yd), Pixels, Pica, Point and HPGL. Click on the link to go to the appropriate size. You can calculate your A paper size in another unit with our calculator.

History ISO 216: ISO 216 the international standard.

The ISO 216 is used worldwide, except in North America and parts of Latin America. The standard includes the “A”, “B” and “C” series of paper sizes. The A4 size is the most widely used worldwide. The sizes A2, A3, B3, B4 and B5 were developed in France by the mathematician Lazare Carnot. These standards were published during the French Revolution in 1798.

At the beginning of the 20th century, Dr. Walter Porstmann changed Lichtenberg’s idea into a good system of different paper sizes. In 1922 Porstmann introduced his system. The DIN became the standard (DIN 476) in Germany. Porstmann’s standard replaced some other paper systems. The DIN system is used in Germany and Austria.