国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲精品日韩精品| 久久久久免费网| 福利精品视频| 久久久999国产| 亚洲一区免费看| 日本精品免费| y111111国产精品久久婷婷| www.日韩视频| 亚洲欧美国产一区二区| 欧美精品卡一卡二| 国产精国产精品| 一区二区在线不卡| 精品1区2区| 国产一区红桃视频| 国产成人精品免高潮在线观看| 日韩中文在线字幕| 国产一区免费在线观看| 色伦专区97中文字幕| 性色av一区二区咪爱| 国产乱人伦真实精品视频| 国产成人精品一区二区| 日韩中文字幕三区| 国产日韩欧美二区| 国产精品久久久久久久app| 欧美性资源免费| 久久久久欧美| 日韩欧美精品久久| 国产成人a亚洲精品| 懂色av一区二区三区在线播放| 午夜精品久久久久久久久久久久| 欧美wwwxxxx| 欧美精品欧美精品| 国产第一区电影| 午夜精品在线视频| av动漫在线看| 欧美精品一二区| 国产欧美一区二区三区不卡高清 | 国产欧美久久一区二区| 日韩在线视频线视频免费网站| 国产精品久久久久久网站| 欧美在线观看日本一区| 国产a一区二区| 日本精品视频一区| 色av中文字幕一区| 狠狠色综合一区二区| 日韩中文字幕网| 欧美久久电影| 国产精品久久久久免费| 欧美日韩一区二区三区在线观看免 | 久久国产精品 国产精品| 亚洲在线视频一区二区| 国产亚洲二区| 久久久久久人妻一区二区三区| 国产激情在线看| 日韩在线三区| 国产精品7m视频| 日本一本a高清免费不卡| 91精品免费看| 日本999视频| 久久久精品一区二区三区| 欧美久久久久久一卡四| 国产精品网站视频| 欧美一级大片在线观看| 91精品国产成人| 久久成人一区二区| 国产精品永久免费| 熟妇人妻va精品中文字幕| 色婷婷av一区二区三区久久| 精品嫩模一区二区三区| 久久久久久91| 91高清免费视频| 日韩视频在线播放| 国产精品无码一区二区在线 | 激情一区二区三区| 国产精品久久久久久av福利软件| 亚洲国产精品日韩| 久久国产午夜精品理论片最新版本 | 久久久久日韩精品久久久男男| 国产精品成人va在线观看| 国产欧美在线观看| 亚洲a在线观看| 播播国产欧美激情| 国产一级做a爰片久久毛片男| 成人av资源网| 亚洲精品乱码久久久久久蜜桃91 | 国产男人精品视频| 亚洲一区制服诱惑| 久久久www免费人成黑人精品| 色综合久久久888| 国产成人精品免费看在线播放| 在线观看日本一区| 久久99国产精品| 国产一区二区在线网站| 熟女少妇精品一区二区| 国产精品久久久久久久久久东京 | 黄色一级大片在线观看| 一区二区三区精品国产| 久久久久久一区| av免费网站观看| 欧美 日韩 激情| 亚洲精品一区二区三区四区五区 | 欧洲精品久久久| 欧美成人四级hd版| 久久久久久高清| 国产欧美123| 男人舔女人下面高潮视频| 无码人妻精品一区二区三区99v| 国产精品夜间视频香蕉| 欧美午夜视频在线| 午夜精品亚洲一区二区三区嫩草| 国产日韩二区| 日本不卡二区| 中文字幕色一区二区| 久久国产亚洲精品无码| www污在线观看| 国产一区二区视频在线观看| 日韩精彩视频| 色综合久久久久久中文网| 精品久久久91| 久久99精品久久久久久久久久 | 欧美精品卡一卡二| 欧美日韩高清在线观看| 国产精品久久久久久影视| 久久久久免费精品| 国产日产久久高清欧美一区| 热99久久精品| 日韩五码在线观看| 性欧美长视频免费观看不卡| 亚洲一二区在线| 欧美日韩高清区| 欧美乱大交xxxxx| 国产精品久久久久久久久男| 久久精品人人做人人爽| 久久精品99久久久香蕉| 久久riav| 久久久久一本一区二区青青蜜月| 日韩在线视频在线| 在线国产99| 中文字幕制服丝袜在线| 久久久精品欧美| 久久99久久久久久| 久久久久高清| 国产欧美日韩专区发布| 麻豆精品视频| 日日夜夜精品网站| 精品国产福利| 久久久久久人妻一区二区三区| 日本精品一区在线观看| 久久99久国产精品黄毛片入口| 国模视频一区二区三区| 日韩免费在线免费观看| 日本一本草久p| 亚洲欧美国产不卡| 亚洲一区中文字幕在线观看| 国产精品日韩在线播放| 久色视频在线播放| 久色视频在线播放| 91精品国自产在线观看| 久久久亚洲精选| 久久草视频在线看| 精品国内自产拍在线观看| 国产精品久久久久久久电影 | 国产在线一区二区三区四区| 黄色污污在线观看| 欧美激情第六页| 欧美大香线蕉线伊人久久 | 久久人妻精品白浆国产| 69久久夜色精品国产69| 久久亚洲午夜电影| 日韩有码在线播放| 久久精品成人欧美大片古装| 国产精品三级美女白浆呻吟| 欧美精品在线免费观看| 亚洲色欲综合一区二区三区| 日韩在线三区| 欧美牲交a欧美牲交aⅴ免费下载| 亚洲一区三区在线观看| 欧美一区二区视频97| 涩涩日韩在线| 日韩免费在线看| 蜜桃在线一区二区三区精品| 国产熟人av一二三区| 91精品视频在线看| 久久久久久尹人网香蕉| 国产精品涩涩涩视频网站| 欧美日韩国产999| 亚洲va久久久噜噜噜久久狠狠 | 日韩精品综合在线| 欧美极品视频一区二区三区| 国产午夜福利在线播放| 成人动漫在线观看视频| 白嫩少妇丰满一区二区| 久久婷婷人人澡人人喊人人爽 | 五月婷婷综合色| 欧美专区第一页| 国产日韩一区欧美| 91精品视频专区| 国产精品日韩欧美综合| 亚洲最大福利视频网站| 日韩激情久久|