日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        国产在线视频欧美一区二区三区| 欧美伦理91i| 国外成人在线视频网站| 99热免费精品| 亚洲欧洲三级电影| 欧美精品1区2区3区| 尤物99国产成人精品视频| 国产伦精品一区二区三区高清| 日韩香蕉视频| 99re66热这里只有精品3直播| 国内精品视频在线观看| 久久婷婷久久一区二区三区| 中文久久精品| 欧美日韩国产首页| 亚洲欧美日韩中文视频| 先锋影音网一区二区| 欧美伊人精品成人久久综合97| 在线一区二区三区四区五区| 久久国产直播| 欧美在线啊v一区| 激情校园亚洲| 亚洲国产另类 国产精品国产免费| 欧美午夜精品理论片a级按摩| 日韩亚洲在线观看| 欧美综合第一页| 久久免费国产精品1| 欧美午夜电影在线| 日韩午夜av| 亚洲一区二区精品在线观看| 久久综合一区二区三区| 欧美乱妇高清无乱码| 国产人久久人人人人爽| 亚洲国产福利在线| 日韩午夜在线观看视频| 亚洲精品国精品久久99热一| 国产精品a级| 在线成人www免费观看视频| 亚洲黄色精品| 国产精品久久久久免费a∨大胸| 亚洲视频视频在线| 欧美日韩成人在线播放| 欧美日韩在线观看一区二区| 亚洲欧美成人综合| 最新中文字幕一区二区三区| 国产精品乱码妇女bbbb| 韩日成人av| 老牛影视一区二区三区| 欧美日韩一本到| 在线国产欧美| 午夜精品福利电影| 欧美成人资源| 国产精品男gay被猛男狂揉视频| 一本一道久久综合狠狠老精东影业| 久久成人免费视频| 欧美激情区在线播放| 欧美乱大交xxxxx| 国产精品xxxxx| 亚洲二区视频在线| 久久亚洲国产精品日日av夜夜| 欧美久久综合| 久久精品国产第一区二区三区最新章节| 欧美精品一二三| 亚洲无限乱码一二三四麻| 一本一本久久a久久精品综合妖精| 欧美一区二区三区四区高清| 国产精品一区久久久| 亚洲永久在线观看| 亚洲午夜视频在线| 久久国产欧美精品| 激情成人在线视频| 国产精品久久久久9999吃药| 久久午夜电影| 欧美日韩第一页| 一本一道久久综合狠狠老精东影业| 韩国精品主播一区二区在线观看| 久久免费国产精品1| 欧美性理论片在线观看片免费| 日韩视频一区二区三区在线播放免费观看| 99ri日韩精品视频| 久久www成人_看片免费不卡| 国产在线欧美日韩| 国产精品第三页| 欧美国产精品日韩| 性高湖久久久久久久久| 伊人色综合久久天天| 欧美高清在线视频观看不卡| 亚洲素人在线| 欧美日韩一区二区高清| 久久精品动漫| 亚洲电影在线| 亚洲天堂第二页| 精品88久久久久88久久久| 一本一本久久a久久精品牛牛影视| 亚洲激情av在线| 国产精品theporn| 欧美国产亚洲精品久久久8v| 欧美一区二区国产| 国产精品嫩草99av在线| 亚洲亚洲精品在线观看| 在线免费不卡视频| 一区二区在线观看av| 久久亚洲国产精品一区二区| 久久精品在线免费观看| 亚洲精品久久久久| 激情六月婷婷综合| 国产日韩欧美综合在线| 亚洲一区二区精品视频| 欧美日韩一区综合| 欧美成人精品在线| 欧美精品www在线观看| 国产精品拍天天在线| 狠狠色丁香婷综合久久| 欧美日韩国产成人在线91| 亚洲综合色在线| 欧美裸体一区二区三区| 亚洲一区二区三区四区在线观看| 国产在线精品一区二区中文| 亚洲自拍偷拍视频| 香蕉成人啪国产精品视频综合网| 欧美一区二区私人影院日本| 亚洲美女免费视频| 久久夜色精品国产欧美乱极品| 亚洲全部视频| 亚洲免费在线精品一区| 欧美日韩日日骚| 久久手机免费观看| 国产亚洲免费的视频看| 久久露脸国产精品| 一本色道久久加勒比精品| 99热免费精品在线观看| 国产日韩欧美日韩大片| 亚洲毛片在线免费观看| 在线看无码的免费网站| 国产自产精品| 欧美激情免费观看| 西西人体一区二区| 99精品视频免费全部在线| 久久久久国产精品一区三寸| 国产精品99久久久久久白浆小说| 狠狠狠色丁香婷婷综合久久五月| 欧美日韩精品不卡| 欧美一级黄色网| 在线观看一区二区视频| 韩国一区二区在线观看| 国产精品高潮粉嫩av| 99国内精品久久| 在线精品高清中文字幕| 宅男噜噜噜66一区二区66| 免费成人av资源网| 欧美怡红院视频一区二区三区| 在线视频国产日韩| 亚洲无线观看| 欧美精品亚洲二区| 亚洲欧美日韩视频一区| 欧美色精品天天在线观看视频| 激情偷拍久久| 亚洲国产91| 欧美一区二区三区在线视频| 亚洲字幕在线观看| 国精品一区二区| 亚洲二区三区四区| 久久综合免费视频影院| 亚洲综合色在线| 99香蕉国产精品偷在线观看|