国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

CISC3025代做、代寫Java,c++設計編程

時間:2024-02-07  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CISC3025 - Natural Language Processing
Project #1, 2023/2024
(Due date: 5th February, 2024)
Project Rule
This is an individual course project. You are strongly recommended to commence work on
each assignment task of the project soon after it is announced in class/UMMoodle. Students are
free to discuss the project, but they are not permitted to share any code and report.
Problem Description
This assignment asks you to implement a sequence comparison algorithm (e.g., Levenshtein
Distance). Given   = "AACGCA" and   = "GAGCTA", the objective is to match identical
subsequences as far as possible through alignment. It can be seen as a way to transforming one
sequence into the other with the substitution, insertion, and deletion of characters. The cost of
operations is considered as:
Ÿ    ( ,  ) = 0       ∈ ∑;
Ÿ    ( ,  ) = 2      ,   ∈ ∑       ≠  ;
Ÿ    ( ) =    ( ) = 1       ∈ ∑.
In the following example, three operations are applied for aligning the two sequences, i.e.,
   ( ,  ),    ( ), and    ( ). Hence, the minimum cost for such transformation is 4.
 M
The similarity of two sequences can be defined as the best score among possible alignment
between them, i.e. the minimum cost or minimum edit distance. The computation of such
alignment between two sequences can be efficiently solved by using dynamic programming
approach based on scoring matrix (Table 1):
DynamicProgramming(x, m, y, n)
1. T[-1,-1] ¬ 0
2. for j ¬ 0 to n - 1
3. do T[-1, j] ¬ T[-1, j - 1] + Ins(yj)
4. for i ¬ 0 to m - 1
5. do T[i, -1] ¬ T[i -1, - 1] + Del(xi)
6. for j ¬ 0 to n - 1
7. do T[i, j] ¬ min{ T[i-1, j - 1] + Sub(xi, yj),
8. T[i-1, j] + Del(xi),
9. T[i, j - 1] + Ins(yj)}
10. return T[m - 1, n - 1]
 ( , ) # G A G C T A
Table 1. Scoring matrix
More information regarding dynamic programming and scoring matrix can be found in Chapter
1 & Chapter 2 of [1] and [2].
Requirements
1. You are asked to implement the dynamic programming algorithm in Python. Input to the
program are two strings and the minimum cost is output as the comparison result, followed
by a possible alignment between the two strings.
The following shows a scenario of the input and outputs:
> AACGCA
> GAGCTA
The cost is: 4
An possible alignment is:
A A C G C - A
| | | | | | |
G A – G C T A
2. Extend your program to deal with sentence by taking words as the comparison units instead
of letters.
The following shows a scenario of the input and outputs:
> I love natural language processing
> I really like natural language processing course
The cost is: 4
An possible alignment is:
I love − natural language processing −
| | | | | | |
I really like natural language processing course
3
3. Write a function to compute the similarities between words in batch mode and store your
results in a file.
In the input file “word_corpus.txt”, each row contains a word and a symbol, ‘R’, or ‘H’,
indicating the correct Reference and the Hypothesis, respectively. Your program compares
each hypothesis to the reference, and appends the minimum edit distance to the
corresponding hypothesisin the output file, as shown in the following diagram. The number
of the hypotheses for each reference may be varied. The name of the output file should be
“word_edit_distance.txt”.
4. Write a similar function to compute the similarities between sentences in batch mode
“sentence_corpus.txt” and store your results in a file “sentence_edit_distance.txt”. The
References and Hypotheses are arranged in a similar way as in Requirement (3). Note, the
number of hypotheses for each reference is constant.
The Starter Code
The starter code is in the edit_distance.py. To make it easier for you to do this project, we
provide a starter code written in python. If you enter into the folder “Assignment#1” and
execute the following command:

The program will execute the function word_edit_distance( ) to calculate the edit distance
and the alignment, then output the result to the command line using the output_alignment
function( ).
Similarly, you can use the following command to test your implemented
sentence_edit_distance( ) function:
For Requirements (3) and (4), you can run the following command to specify the name of
input and output files:
Input file:
R satisfaction
H satisfacion
H satesfaction
H satisfation
H satiusfacson
.
.
.
Output file:
R satisfaction
H satisfacion 1
H satesfaction 2
H satisfation 1
H satiusfacson 4
.
.
.
$python edit_distance.py -w ‘word1’ ‘word2’
$python edit_distance.py -s ‘sentence1’ ‘sentence2’
4
The output_alignment( ) function has been already implemented to show the alignments in
a proper format.
Submissions
You need to submit the following materials:
1. Runnable program and source code;
2. A brief report containing the following contents:
• Introduction: Clearly state the goal of your project. Explain why the project is both
important and interesting in the context of NLP.
• Background: Briefly introduce one or two fundamental NLP concepts that are central
to your project.
• Approach & Challenges: Summarize your methodological approach in one concise
paragraph. Identify one significant challenge you encountered and describe how you
addressed it.
• Results: Summarize the outcomes of your project, highlighting the main findings.
• Conclusion: Reflect briefly on what you learned from the project and what was
accomplished.
3. The output files.
References
[1] C. Charras and T. Lecroq, Sequence Comparison. Université de Rouen.
(https://www.researchgate.net/profile/Thierry_Lecroq/publication/2783**5_Sequence_Com
parison/links/09e41**d23e64eb7000000.pdf)
[2] http://ultrastudio.org/en/Dynamic%20programming%20table
$python edit_distance.py -bw ‘inputfile’ ‘outputfile’
$python edit_distance.py -bs ‘inputfile’ ‘outputfile’

如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做Micro Language Compiler
  • 下一篇:CS 61程序代做、代寫C/C++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩最新中文字幕| 国产淫片av片久久久久久| 日韩天堂在线视频| 久久精品国产第一区二区三区最新章节 | 欧美精品一本久久男人的天堂| 国产精品视频一区二区高潮| 国产精品久久精品视| 插插插亚洲综合网| 一区二区高清视频| 日韩资源av在线| 日韩精品大片| 美女精品国产| 国产日韩精品一区观看| 成人av免费电影| 99精彩视频在线观看免费| 91av中文字幕| 久久99久久久久久| 国产精品久久久影院| 精品国产一区二区三区久久久久久 | 午夜精品久久久久久99热| 色综合久久久久无码专区| 日本中文字幕不卡免费| 欧美在线日韩精品| 国内精品伊人久久| 成人久久久久久| 国产成人精品视| 国产精品久久久久久久久久直播 | 欧美日韩成人一区二区三区| 国内精品一区二区三区四区| 国产一级片黄色| 久久偷窥视频| 国产精品乱码| 亚洲自拍的二区三区| 欧美一区二区福利| 国产一区免费在线观看| 久久亚裔精品欧美| 色婷婷综合成人| 欧美精品videofree1080p| 日本精品久久久久影院| 精品婷婷色一区二区三区蜜桃| 91九色在线观看| 国产精品视频免费在线| 亚洲综合av一区| 欧美凹凸一区二区三区视频| 97精品欧美一区二区三区| 久久精品亚洲国产| 亚洲欧美在线网| 国模私拍视频一区| 国产成人精品免费视频大全最热 | 亚洲第一精品区| 国模视频一区二区| 九色综合婷婷综合| 亚洲一区高清| 国产一区二区三区播放| 日韩一区二区在线视频| 亚洲一区在线免费| 国产日韩一区二区| 久久久久99精品久久久久| 日韩一级片免费视频| 国产综合在线看| 日韩视频一区在线| 亚洲 自拍 另类小说综合图区| 日韩videos| 99视频免费观看| 国产精品美女久久久久久免费| 欧美一区二区三区电影在线观看| 国产精品中出一区二区三区| 国产精品美女在线播放| 欧美在线视频一区二区| 久草免费福利在线| 天天爽天天狠久久久| 超碰国产精品久久国产精品99| 国产精品国产对白熟妇| 欧美做受777cos| 久久国产一区| 视频一区二区三区免费观看 | 国产精品97在线| 久久99精品久久久久久琪琪| 黄色99视频| 国产精品丝袜视频| 欧美专区在线播放| 久久久久久久久久久91| 日本亚洲欧洲色α| 91精品国产成人www| 亚洲a∨一区二区三区| 91久久偷偷做嫩草影院| 一本色道久久88亚洲精品综合 | 国产一区在线播放| 精品乱子伦一区二区三区| 黄色影视在线观看| 国产精品免费久久久久久| 欧美两根一起进3p做受视频| xvideos亚洲| 欧美激情国产精品日韩| 国产精品美女久久久久av福利| 免费中文日韩| 久久电影一区二区| 国产精品一区二区三区免费视频| 欧美激情精品久久久久久变态| 国产卡一卡二在线| 亚洲一区二区三区毛片| 91av免费看| 日本不卡一区| 久久久国产精品一区| 蜜臀精品一区二区| 国产精品久久精品| 国产日韩一区二区| 亚洲一区二区三区免费观看| 久久婷婷开心| 欧美在线观看黄| 欧美不卡视频一区发布| 99精品在线免费视频| 丁香六月激情网| 久热精品视频在线| 国产精品一区免费观看| 婷婷五月色综合| xvideos亚洲| 国产精品一区二区在线| 日日夜夜精品网站| 国产精品免费电影| 国产精品亚洲不卡a| 日产精品久久久一区二区福利| 久久久精品久久久| 成人av免费在线看| 欧美亚洲伦理www| 久久久久国产精品一区| 国产成人综合精品在线| 国产主播欧美精品| 日本免费一区二区三区视频观看| 国产精品二区三区四区| 久久久久国产精品视频| 精品一区二区不卡| 日日摸天天爽天天爽视频| 国产精品久久激情| 久久这里精品国产99丫e6| 免费一级特黄特色毛片久久看| 亚洲一区精品电影| 国产精品久久精品视| 91国产在线精品| 国产专区欧美专区| 日韩女在线观看| 亚洲图片在线观看| 国产精品高潮在线| 日韩中文字幕不卡视频| 99久久国产免费免费| 亚洲va国产va天堂va久久| 国产精品裸体一区二区三区| 国产福利精品av综合导导航| 国产精品自拍视频| 精品一区久久| 欧美中文字幕精品| 亚洲啪啪av| 精品国产乱码久久久久久蜜柚| 久艹视频在线免费观看| 97色在线观看免费视频| 国产午夜福利在线播放| 青青草精品视频在线| 午夜精品三级视频福利| 九九热这里只有精品6| 国产精品流白浆视频| 久久久久五月天| 国产精品8888| 白白操在线视频| 国产又爽又黄的激情精品视频| 人妻精品无码一区二区三区| 日韩av高清在线播放| 一级一片免费播放| 九九精品视频在线| 国产精品美女诱惑| 精品国内亚洲在观看18黄| 久久精精品视频| 国产成人综合精品在线| 国产成人高潮免费观看精品| 国产精品12| 国产精品69久久久久| 91精品国自产在线观看| 91精品在线国产| 97成人在线视频| 99国产精品白浆在线观看免费| 国产乱人伦精品一区二区三区| 国产热re99久久6国产精品| 欧美视频在线观看网站| 日韩免费av在线| 日韩精品久久久免费观看| 日韩av免费看| 日韩国产一区久久| 欧美资源在线观看| 国严精品久久久久久亚洲影视| 欧美亚洲成人免费| 激情五月开心婷婷| 国内精品视频一区| 国产一区免费观看| 国产毛片视频网站| 91免费国产视频| 国产成人av在线| 久久久久久久久久国产精品| 日韩有码在线播放| 国产精品日韩一区二区免费视频| 久久成人亚洲精品| 一区二区精品在线|