国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    欧美在线观看网址综合| 欧美日韩黄色一级片| 久久日韩精品| 成人精品水蜜桃| 黄色大片中文字幕| 日韩精品视频在线观看视频| 亚洲自拍小视频| 精品中文字幕乱| 欧美成人精品在线| 国产精品久久久久久久天堂第1集| 色婷婷久久一区二区| 久久久中文字幕| 91久久久久久久久久久| 国产另类自拍| www.欧美黄色| 久久乐国产精品| 国产精品美女在线播放| 国产精品爽黄69天堂a| 国产精品久久激情| 久久97精品久久久久久久不卡| 欧美激情视频网站| 亚洲专区国产精品| 日本精品视频网站| 欧美国产综合视频| 黄色一级在线视频| 国产日韩在线视频| av一区二区在线看| 久久综合一区| 久久久久久久久久久久久久久久av | 久久精品国产亚洲7777| 另类色图亚洲色图| 亚洲影视中文字幕| 日本一区二区在线| 欧美性大战久久久久xxx| 精品日产一区2区三区黄免费 | 色在人av网站天堂精品| 国产精品高潮视频| 熟妇人妻va精品中文字幕| 日韩黄色片在线| 国产美女网站在线观看| 国产a一区二区| 欧美精品在线看| 日韩小视频在线播放| 国产深夜精品福利| 久久久久久这里只有精品| 综合操久久久| 国内精品在线观看视频| 久久无码高潮喷水| 欧美激情xxxx| 国产日本欧美一区| 久久精品国产清自在天天线 | 亚洲人精品午夜射精日韩| 精品视频在线观看一区| www国产精品com| 日本一区二区三不卡| 久久久免费观看| 亚洲精品免费网站| 97人人干人人| 欧美日韩xxxxx| 国产一区二区色| 精品伦精品一区二区三区视频| 国产一区免费在线观看| 亚洲精品乱码久久久久久蜜桃91| 成人国产精品av| 日韩在线视频观看正片免费网站| 国产精品青青草| 91国产一区在线| 日韩精品免费一区| 久久国产精品一区二区三区四区| 日本中文字幕不卡免费| 国产成人精品日本亚洲| 欧美在线一区二区三区四| 国产成人啪精品视频免费网| 狠狠色噜噜狠狠色综合久| 国产精品免费看一区二区三区| 国产亚洲综合视频| 一区二区精品在线观看| 国产成人精品a视频一区www| 欧美亚洲在线观看| 欧美激情久久久久久| 欧美精品成人网| 亚洲专区在线视频| 国产精品视频永久免费播放| 不卡一区二区三区视频| 欧美精品尤物在线| 日韩在线第三页| 中国丰满熟妇xxxx性| 国产成人精品福利一区二区三区 | 免费一级特黄特色毛片久久看| 在线视频一二三区| 国产精品无码乱伦| 91精品91久久久中77777老牛| 日韩欧美视频网站| 日韩在线视频在线| 亚洲一区中文字幕在线观看| 在线视频亚洲自拍| 亚洲视频在线二区| 国产精品一级久久久| 国产精品久久久久久影视| 久久综合九色九九| 天天操天天干天天玩| 黄色一级视频片| 国产极品在线视频| 国产日韩欧美另类| 精品一区久久| 欧美综合在线观看| 午夜精品一区二区三区在线 | www.九色.com| 国产一区二区三区色淫影院| 日本a级片电影一区二区| 欧美久久精品午夜青青大伊人| 91免费国产精品| 国产在线青青草| 韩国成人一区| 欧美亚洲在线播放| 男人的天堂狠狠干| 日韩高清av| 亚洲va久久久噜噜噜| 在线观看一区欧美| 一本色道久久综合亚洲二区三区| 日韩亚洲一区二区| 久久久无码中文字幕久...| 欧美亚洲国产成人精品| 精品高清视频| 亚洲综合色av| 日韩精品伦理第一区| 日本视频久久久| 午夜精品理论片| 日韩在线三级| 热门国产精品亚洲第一区在线| 日本精品免费| 欧美高清视频一区二区三区在线观看| 亚洲国产日韩美| 亚洲中文字幕无码中文字| 麻豆国产精品va在线观看不卡| 国产精品成人国产乱一区| 最新欧美日韩亚洲| 欧美精品www在线观看| 一区二区免费电影| 日本在线高清视频一区| 日韩欧美一区二区三区久久婷婷| 精品国产综合久久| 亚洲精品一区二区三区蜜桃久| 色综合久久88色综合天天提莫| 欧美亚洲第一页| 成人黄动漫网站免费| 久久久久久a亚洲欧洲aⅴ| 国产精品久久精品| 国产欧美日韩小视频| 深夜福利一区二区| 亚洲欧洲中文| 国产九区一区在线| 俺去啦;欧美日韩| 一区二区成人国产精品| 国产在线一区二区三区欧美| 妓院一钑片免看黄大片| 精品无人乱码一区二区三区的优势| 国产日韩av在线播放| 91国产精品视频在线| 国产v综合ⅴ日韩v欧美大片| 久久久久久久久久亚洲| 国产精品二区三区四区| 亚洲综合av一区| 日韩免费av一区二区三区| 国产色综合天天综合网| 国产白丝袜美女久久久久| 欧美成人四级hd版| 一区二区在线观看网站| 日韩美女在线观看| 成人一区二区av| 国产精品日韩在线| 一区二区日本伦理| 国内精品久久久久影院优| 91精品国产91久久久久久久久| 久久精品视频一| 春色成人在线视频| 久久久无码中文字幕久...| 日本精品视频在线观看| 中文字幕综合在线观看| 国产国语videosex另类| 久久久久久九九九| 午夜肉伦伦影院| 国产欧美欧洲在线观看| 久久视频这里有精品| 在线观看国产一区| 久久久亚洲天堂| 色综合影院在线观看| 国产精品 欧美在线| 亚洲伊人久久综合| 久久久一二三四| 精品人伦一区二区三区| 久久天堂av综合合色| 欧美精品与人动性物交免费看| 久久久精品亚洲| 激情网站五月天| 久久99久久久久久久噜噜| 91精品国产高清久久久久久91裸体| 欧美激情精品久久久久| 91高清免费视频| 欧美精品一区二区三区三州|