加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    亚洲欧美日韩高清在线| 青青草97国产精品免费观看| 大陆精大陆国产国语精品| 久久精品国产99久久6| 国产精品日本| 国产精品22p| 中文字幕av亚洲精品一部二部| 欧美国产美女| 亚洲欧美综合| 欧美三区美女| 成人日韩视频| 欧美一区高清| 日韩精品2区| 亚洲一区激情| 亚洲午夜一级| 国产福利一区二区精品秒拍| 欧洲大片精品免费永久看nba| 国产一区二区| 国产777精品精品热热热一区二区| 欧美 日韩 国产一区二区在线视频 | 在线日韩电影| 中文字幕av一区二区三区四区| 一区二区三区在线电影| 欧美国产日韩电影| 国产欧美一区二区三区精品酒店 | 亚洲成a人片777777久久| 六月婷婷一区| 国产一区成人| 不卡在线一区二区| 99精品综合| 欧美人成在线观看ccc36| 国产精品亚洲片在线播放| 捆绑调教一区二区三区| 人人鲁人人莫人人爱精品| 久久久久久婷| 丝袜a∨在线一区二区三区不卡| 亚洲第一区色| 91精品国产91久久久久久密臀| 综合激情久久| 日韩一区二区三区在线看| 亚洲欧洲av| 国内精品久久久久久99蜜桃| 99re8精品视频在线观看| 欧美激情精品久久久六区热门| 亚洲高清网站| 日韩精品免费视频人成| 欧美亚洲在线| 欧美日本一区| 亚洲一区有码| 国产探花在线精品一区二区| 成人在线日韩| 久久av中文| 日韩电影在线看| 人人爱人人干婷婷丁香亚洲| 97se亚洲| 99精品在线免费在线观看| 99热国内精品| 成人av动漫在线观看| 亚洲激精日韩激精欧美精品| 精品1区2区3区4区| 丝袜亚洲另类欧美| 色男人天堂综合再现| 国产拍在线视频| 午夜影院在线观看国产主播| 久久青草伊人| 国产一区二区三区国产精品| 精品人人视频| 日日夜夜免费精品| 日本aⅴ精品一区二区三区 | 韩日毛片在线观看| 日韩欧美视频| 久久伊人国产| 亚洲精一区二区三区| 国产剧情一区二区在线观看| 偷拍自拍一区| 韩国精品福利一区二区三区 | 亚洲综合丁香| 鲁鲁在线中文| 麻豆专区一区二区三区四区五区| 国产精品啊啊啊| 日本强好片久久久久久aaa| 成人在线视频你懂的| 国模吧视频一区| 日韩在线一区二区三区| 中国色在线日|韩| 一区二区三区四区五区在线 | 狠狠入ady亚洲精品| 日本欧美国产| 久久精品 人人爱| 国产成人3p视频免费观看| 三级欧美日韩| 欧美精品激情| 成人va天堂| 国产精品欧美三级在线观看| 国产精品tv| 西西人体一区二区| 免费日韩成人| 欧美精品第一区| 在线成人动漫av| 免费精品视频在线| 日欧美一区二区| 日本一区二区乱| 免费欧美一区| 日韩av福利| 欧美三级一区| 极品少妇一区二区三区| 日本一区二区高清不卡| 日本视频一区二区三区| 久久久久久久久久久久电影| 欧美精品一二| 国产成人精品一区二区三区在线 | 免费亚洲电影在线| 蓝色福利精品导航| 精品久久电影| 国产福利电影在线播放| 国内精品嫩模av私拍在线观看| 精品视频一二| 亚洲欧美高清| 国内精品久久久久久久影视蜜臀| 欧美日韩一本| caoporn视频在线| 99精品国产九九国产精品| 国内精品99| 成人交换视频| 精品国产美女| 日韩欧美综合| 日韩高清在线观看一区二区| 久久不射中文字幕| 91精品国产一区二区在线观看 | 欧美国产一级| 国际精品欧美精品| 久久国产99| 国产精品亚洲一区二区在线观看| 99精品在线观看| 国产伊人久久| 丝袜av一区| 香蕉久久久久久| 精品五月天堂| 99久久综合国产精品二区| 99国产精品免费网站| 久久久久久网| 日本99精品| 免费看av不卡| 国产图片一区| 亚洲综合av一区二区三区| 精品国产欧美| 亚洲mmav| 久久久777| 国产日韩欧美高清免费| 亚洲第一精品影视| 青青草视频一区| 午夜国产精品视频| 久久香蕉网站| 99国产精品| 亚洲国产合集| 日韩精品第一区| 成人在线免费观看网站| 深夜视频一区二区| 少妇精品导航| 国产精品大片免费观看| 亚洲激情精品| 最近国产精品视频| 毛片在线网站| 国产一区二区三区亚洲| 久久综合综合久久综合| 很黄很黄激情成人| 成人黄色91| 日本不良网站在线观看| 嗯用力啊快一点好舒服小柔久久| 懂色aⅴ精品一区二区三区| 亚洲精品中文字幕乱码| 欧洲精品99毛片免费高清观看| 亚洲精品福利电影| 欧美五码在线| 国产精品激情电影| 欧美gayvideo| 日本韩国欧美超级黄在线观看| 麻豆成人综合网| 免费成人av在线| 久久99精品久久久久久欧洲站| 六月丁香婷婷久久| 首页综合国产亚洲丝袜| 粉嫩一区二区三区四区公司1| 青青青伊人色综合久久| 蜜臀a∨国产成人精品| 在线观看视频一区二区三区| 久久精品国产999大香线蕉| 国产精品美女久久久| 91国内精品| 欧美人成在线| 免费v片在线观看| 99热在线精品观看| 亚洲天堂中文字幕在线观看| 99精品国产99久久久久久福利| 在线视频免费在线观看一区二区| 国产精东传媒成人av电影| 欧美国产综合| 欧美精品高清| 另类国产ts人妖高潮视频| 久久久久国产|