MathGenie commited on
Commit
e2456b1
1 Parent(s): 1cecdb9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -3
README.md CHANGED
@@ -1,3 +1,51 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ ## Introduction
6
+
7
+ This is the fastText classifier used for the finer filtering of CC-En in [MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code](https://arxiv.org/abs/2410.08196).
8
+
9
+ ## Usage
10
+
11
+ ```python
12
+ import fasttext
13
+
14
+ model = fasttext.load_model("fastText-cc-en-filter_round2.bin")
15
+ thresh = 0.5
16
+
17
+ text = "The text to be predicted."
18
+ predictions = model.predict([text,])[0]
19
+
20
+ label = predictions[0][0]
21
+ if label == "__label__related":
22
+ print("math")
23
+ else:
24
+ print("other")
25
+ ```
26
+
27
+ ## Citation
28
+
29
+ If you find this repository helpful, please consider citing our papers:
30
+
31
+ ```
32
+ @misc{lu2024mathcoder2bettermathreasoning,
33
+ title={MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code},
34
+ author={Zimu Lu and Aojun Zhou and Ke Wang and Houxing Ren and Weikang Shi and Junting Pan and Mingjie Zhan and Hongsheng Li},
35
+ year={2024},
36
+ eprint={2410.08196},
37
+ archivePrefix={arXiv},
38
+ primaryClass={cs.CL},
39
+ url={https://arxiv.org/abs/2410.08196},
40
+ }
41
+ ```
42
+ ```
43
+ @inproceedings{
44
+ wang2024mathcoder,
45
+ title={MathCoder: Seamless Code Integration in {LLM}s for Enhanced Mathematical Reasoning},
46
+ author={Zimu Lu and Aojun Zhou and Zimu Lu and Sichun Luo and Weikang Shi and Renrui Zhang and Linqi Song and Mingjie Zhan and Hongsheng Li},
47
+ booktitle={The Twelfth International Conference on Learning Representations},
48
+ year={2024},
49
+ url={https://openreview.net/forum?id=z8TW0ttBPp}
50
+ }
51
+ ```