Datasets:

Modalities:
Text
Formats:
csv
DOI:
Libraries:
Datasets
pandas
License:
andriygav commited on
Commit
2aacee1
·
verified ·
1 Parent(s): c81ad22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md CHANGED
@@ -22,6 +22,45 @@ configs:
22
 
23
  The widespread availability of scientific documents in multiple languages, coupled with the development of automatic translation and editing tools, has created a demand for efficient methods that can detect plagiarism across different languages.
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  # Citation
26
 
27
  If you use that results in your research, please cite our paper:
 
22
 
23
  The widespread availability of scientific documents in multiple languages, coupled with the development of automatic translation and editing tools, has created a demand for efficient methods that can detect plagiarism across different languages.
24
 
25
+ # Usage of Dataset
26
+
27
+ ## Load Data
28
+
29
+ ```python
30
+ from datasets import load_dataset
31
+
32
+ ds = load_dataset("AntiplagiatCompany/CL4Lang")
33
+ ```
34
+
35
+ ## Create Index of collection
36
+
37
+ ```python
38
+ # The list consists of dictionaries with document id, text of the document and text language information (also present xml data, but it used only for querys, not for indexing)
39
+ collection = ds['index'].to_list()
40
+
41
+ # The list of object can be indexing by using different methods (vector search methods or classical BM25 indexing methods)
42
+ index = make_index(collection)
43
+ ```
44
+
45
+ ## Evaluate The Query Result
46
+
47
+ ```python
48
+ # The list consists of dictionaries with document id, text of the document, text language information, and XML information about text reuses in query from collection.
49
+ queries = ds['query'].to_list()
50
+
51
+ real, predict = [], []
52
+ for query in queries:
53
+ real.append(query['xml'])
54
+ predict.append(
55
+ convert_answer_to_xml(
56
+ index.search(text=query['text'], lang=query['lang'])
57
+ )
58
+ )
59
+
60
+ # More information about the XML markup description and evaluation see http://pan.webis.de/clef13/pan13-web/plagiarism-detection.html
61
+ evaluate_system(real, predict)
62
+ ```
63
+
64
  # Citation
65
 
66
  If you use that results in your research, please cite our paper: