99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務合肥法律

CISC3025代做、代寫Java,c++設(shè)計編程

時間:2024-02-07  來源:合肥網(wǎng)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++編程設(shè)計
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設(shè)計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務+熱設(shè)計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機亮相AWE 復古美學與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務 | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产亚洲日本欧美韩国| 国产精品久久久久9999高清| 麻豆亚洲精品| 欧美精品日日鲁夜夜添| 欧美激情亚洲| 国产精品另类一区| 狠狠爱综合网| 日韩一级黄色av| 小黄鸭视频精品导航| 亚洲美女精品成人在线视频| 国产视频一区三区| 国产精品久久久久久户外露出| 久久婷婷麻豆| 欧美中文字幕在线播放| 久久久人成影片一区二区三区观看| 香蕉免费一区二区三区在线观看| 久久久精品五月天| 欧美精品一区二区三区蜜臀| 国产精品区二区三区日本| 国外成人网址| 亚洲一区免费| 欧美福利视频| 国产日韩精品视频一区| 亚洲精品三级| 久久婷婷国产麻豆91天堂| 欧美区二区三区| 狠狠色综合色综合网络| 一区二区精品| 免费精品99久久国产综合精品| 欧美亚一区二区| 亚洲经典在线看| 欧美一区二区三区久久精品茉莉花 | 亚洲精品123区| 亚欧美中日韩视频| 欧美日韩欧美一区二区| 精品999久久久| 午夜在线a亚洲v天堂网2018| 欧美精品午夜| 亚洲经典视频在线观看| 午夜久久美女| 国产精品高潮视频| 一本色道久久综合亚洲91| 欧美在线观看一二区| 欧美三级免费| 一区二区激情小说| 欧美 日韩 国产在线| 国内一区二区三区| 久久国产精品黑丝| 国产一区二区三区网站| 亚洲综合三区| 国产欧美1区2区3区| 亚洲欧美日韩精品综合在线观看| 欧美日韩在线直播| 在线亚洲高清视频| 欧美午夜免费| 亚洲图片欧洲图片av| 亚洲欧美日韩国产另类专区| 欧美一区二区三区免费观看视频 | 国内成人精品一区| 在线免费观看日韩欧美| 91久久精品网| 亚洲制服少妇| 国产午夜精品一区理论片飘花| 午夜日韩福利| 国产在线观看91精品一区| 欧美影视一区| 尹人成人综合网| 牛牛国产精品| 亚洲乱码精品一二三四区日韩在线 | 亚洲欧美日韩专区| 国产日本欧美一区二区| 久久久久88色偷偷免费| 亚洲日本理论电影| 麻豆91精品| 日韩性生活视频| 国产精品久久国产精品99gif| 亚洲一区在线观看视频| 国产精品夜夜夜| 久久激情中文| 亚洲精品韩国| 国产精品视频大全| 久久精品亚洲精品| 亚洲国产天堂久久综合网| 欧美日韩亚洲一区三区 | 黄色国产精品| 欧美另类在线播放| 先锋a资源在线看亚洲| 在线观看一区| 国产精品久久毛片a| 久久精品国内一区二区三区| 亚洲国产精品123| 国产精品久久久久9999吃药| 久久精品123| 一区二区欧美视频| 国产欧美 在线欧美| 麻豆精品视频在线| 亚洲综合色婷婷| 亚洲激情在线播放| 国产日韩欧美高清| 欧美日韩亚洲另类| 久久婷婷亚洲| 午夜精品久久久久久久久| 亚洲高清视频在线观看| 国产精品久久国产精品99gif | 99热在这里有精品免费| 国产欧美精品日韩精品| 一区二区三区四区五区精品| 欧美日韩精品在线视频| 中文一区二区| 国产精品一区二区你懂得| 午夜精品久久| 一区免费观看| 免费不卡在线视频| 久久男女视频| 亚洲欧美视频一区| 亚洲视频欧美视频| 亚洲精品乱码久久久久| 在线播放中文一区| 一区二区三区在线不卡| 国产精品爽爽爽| 欧美午夜一区二区三区免费大片| 欧美xart系列在线观看| 久久久久久久高潮| 香蕉乱码成人久久天堂爱免费| 亚洲黑丝在线| 亚洲国产综合91精品麻豆| 国产揄拍国内精品对白| 国产深夜精品| 国产一区av在线| 国产一区二区三区四区五区美女 | 91久久精品视频| 亚洲激情在线| 亚洲肉体裸体xxxx137| 亚洲高清久久| 亚洲精品视频中文字幕| 亚洲欧洲精品成人久久奇米网 | 亚洲高清在线| 国内精品视频在线播放| 国产香蕉久久精品综合网| 国产午夜精品久久久久久久| 国产视频欧美| 樱桃国产成人精品视频| 亚洲成人直播| 日韩午夜在线播放| 亚洲一区在线观看免费观看电影高清| 亚洲一区图片| 欧美综合二区| 欧美成人中文字幕在线| 欧美高清不卡在线| 欧美日韩xxxxx| 国产精品一区二区久久久久| 国产欧美69| 亚洲第一在线综合网站| 亚洲日韩第九十九页| 一本久道久久综合狠狠爱| 亚洲欧美在线一区| 另类国产ts人妖高潮视频| 欧美精品不卡| 国产一区二区三区四区hd| 亚洲第一在线视频| 亚洲一区bb| 久久久久久9999| 欧美日韩麻豆| 国内精品久久久久久| 久久久久国色av免费观看性色| 在线看片一区| 亚洲欧洲日本国产| 亚洲精品国产精品国自产观看浪潮| 在线电影国产精品| 亚洲国产影院| 亚洲另类黄色| 99精品视频免费观看视频| 在线观看国产日韩| 亚洲精品专区| 久久免费少妇高潮久久精品99| 欧美日本在线观看| 一区在线免费| 亚洲欧美日韩成人| 欧美精品久久久久久久久老牛影院 | 欧美激情第4页| 国产一区二区精品| 一区二区三区你懂的| 久久精品72免费观看| 欧美日韩亚洲免费| 一色屋精品视频免费看| 亚洲在线第一页| 欧美日韩美女一区二区| 伊人成人开心激情综合网| 亚洲一区二区三区四区中文| 欧美顶级少妇做爰| 伊人久久大香线蕉综合热线| 亚洲一区免费视频| 欧美三级资源在线| 亚洲人成亚洲人成在线观看| 欧美一区不卡| 国产精品亚洲不卡a| 一区二区三区四区五区视频| 你懂的网址国产 欧美| 亚洲成色www久久网站| 久久嫩草精品久久久精品|