Changes between Initial Version and Version 1 of en/AdvancedNlpCourse2018/LanguageResourcesFromWeb


Ignore:
Timestamp:
Sep 12, 2019, 11:11:39 AM (2 years ago)
Author:
Ales Horak
Comment:

copied from private/AdvancedNlpCourse/LanguageResourcesFromWeb

Legend:

Unmodified
Added
Removed
Modified
  • en/AdvancedNlpCourse2018/LanguageResourcesFromWeb

    v1 v1  
     1= Building Language Resources from the Web =
     2Web crawling, boilerplate removal, de-duplication and plagiarism detection.
     3
     4[[https://is.muni.cz/auth/predmet/fi/ia161|IA161]] [[en/AdvancedNlpCourse|Advanced NLP Course]], Course Guarantee: Aleš Horák
     5
     6
     7Prepared by: Vít Suchomel[[BR]]
     8[http://nlp.fi.muni.cz/trac/research/raw-attachment/wiki/en/AdvancedNlpCourse/anlp-05-LanguageResourcesFromWeb.pdf Slides]
     9
     10== State of the Art ==
     11
     12=== References ===
     13 1. Chapters 19 and 20 from C. D. Manning et al. "Introduction to Information Retrieval". Cambridge University Press, 2008.
     14 1. Pomikálek, Jan. "Removing boilerplate and duplicate content from web corpora." Dissertation thesis. Masaryk University, 2011.
     15 1. Hacohen-Kerner, Yaakov, Aharon Tayeb, and Natan Ben-Dror. "Detection of simple plagiarism in computer science papers." Coling, 2010.
     16 1. Potthast, M., Hagen, M., Goering, S., Rosso, P., and Stein, B. (2015). Towards data submissions for shared tasks: first experiences for the task of text alignment. Working Notes Papers of the CLEF, pages 1613–0073.
     17 1. [http://www.uni-weimar.de/medien/webis/events/pan-15/pan15-web/ 13th evaluation lab on uncovering plagiarism, authorship, and social software misuse]
     18{{{#!comment
     19 1. Potthast et al. "Overview of the 6th International Competition on Plagiarism Detection." CLEF, 2014.
     20 1. Potthast, M., Stein, B., Barron-Cedeno, A., and Rosso, P. (2010). An Evaluation Framework for Plagiarism Detection. In Proceedings of COLING 2010, Beijing, China. ACL.
     21}}}
     22
     23
     24== Practical Session task ==
     25=== Plagiators vs. plagiarism detectors ===
     26
     27Either: Create 5 documents (with a similar topic) and 5 plagiarisms of these documents, 10 documents total. //(For the sake of simplicity: A plagiarism cannot have more sources here.)// //The minimal homework.//
     28  * 100 words <= document lenght <= 500 words
     29  * 20 % <= plagiarism content <= 90 %
     30  * File format: A POS tagged vertical consisting of structures {{{doc}}} with attributes {{{author}}}, {{{id}}}, {{{class}}}, {{{source}}}. Pair author, id is unique. Start with id = 1. Class is "original" or "plagiarism". Source is the id of the source (in the case of plagiarism) or the same as the id of the document (in the case of original).
     31  * A POS tagged vertical: 3 TAB separated columns: word, lemma (the base form of the word), POS/morphological tag.
     32  * Text processing pipelines for converting a text file to a 3-column vertical:
     33    * Czech: {{{alba:/opt/majka/majka-desamb-czech.sh | cut -f1-3}}} or a [http://nlp.fi.muni.cz/projekty/rule_ind/index.cgi web interface] (short documents only)
     34      * See an example below.
     35    * English: {{{alba:/opt/TreeTagger/tools/tt-english\_v2.sh | awk '{print \$1"\textbackslash t"\$3"\textbackslash t"\$2}'}}}
     36  * For each plagiarism:
     37    * describe plagiarsim technique(s) used
     38    * which detection methods might be able to reveal it -- give reasons
     39    * which detection methods might not be able to reveal it -- give reasons
     40  * **Submit a text file containing 10 documents according to the requirements + 1 text file describing techniques used and your estimation which detection techniques may or may not work.**
     41
     42Or: Select a detection algorithm and implement it in Python. //The right homework if you want to learn something.//
     43  * A basic detection script to extend: [raw-attachment:plagiarism_simple.py] -- usage: {{{python plagiarism_simple.py < training_data.vert}}}
     44    * A bag of words + cosine similarity of word vectors approach is implemented in this script. //(For the sake of simplicity: A plagiarism cannot have more sources here.)//
     45    * You can modify the script to
     46      * use other input attributes than the word or a combination of attributes, e.g. the lemma or the morphological tag,
     47      * or implement other lexical/syntactic based detection approach, e.g. n-grams of words or Levenshtein's distance,
     48      * or implement other semantic based detection approach, e.g. the similarity of {{{word2vec}}} vectors.
     49  * Input format: A 3-column vertical, see above. [raw-attachment:training_data.vert]
     50  * Output: One plagiarism per line: id TAB detected source id TAB real source id. Evaluation line: precision, recall F1 measure.
     51  * Your script will be evaluated using data made by others.
     52  * Describe which plagiarism detection technique(s) were implemented -- put it in a comment in the beginning of your script.
     53  * **Submit the modified script (or your own script) with a short description in a comment.** (The training set output of the script is not required.)
     54
     55=== Examples of a source document and a plagiarism document ===
     56{{{
     57<doc author="Já První" id="1" class="original" source="1">
     58<s>
     59Dnes    dnes    k6eAd1
     60je      být     k5eAaImIp3nS
     61pěkný   pěkný   k2eAgInSc4d1    pěkný
     62den     den     k1gInSc4        den
     63<g/>
     64!       !       k?
     65</s>
     66</doc>
     67<doc author="Já První" id="2" class="plagiarism" source="1">
     68<s>
     69Dnes    dnes    k6eAd1
     70je      být     k5eAaImIp3nS
     71ale     ale     k9
     72pěkný   pěkný   k2eAgInSc4d1    pěkný
     73den     den     k1gInSc4        den
     74<g/>
     75!       !       k?
     76</s>
     77</doc>
     78}}}
     79
     80How to produce the 3-column POS tagged vertical from a plaintext:
     81{{{
     82scp plagiarism.txt aurora.fi.muni.cz:~/
     83ssh aurora.fi.muni.cz
     84ssh alba
     85/opt/majka/majka-desamb-czech.sh < ~/plagiarism.txt | cut -f1-3 > ~/plagiarism.vert
     86logout
     87logout
     88scp aurora.fi.muni.cz:~/plagiarism.vert ./
     89}}}
     90
     91