Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

schema.py 461 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  1. """
  2. Data schema information for the book data tools.
  3. """
  4. import pandas as pd
  5. ns_work=100000000
  6. ns_edition=200000000
  7. ns_rec=300000000
  8. ns_gr_work=400000000
  9. ns_gr_book=500000000
  10. ns_loc_work=600000000
  11. ns_loc_instance=700000000
  12. ns_isbn=900000000
  13. src_labels = pd.Series({
  14. 'OL-W': 1,
  15. 'OL-E': 2,
  16. 'LOC': 3,
  17. 'GR-W': 4,
  18. 'GR-B': 5,
  19. 'LOC-W': 6,
  20. 'LOC-I': 7,
  21. 'ISBN': 9
  22. })
  23. src_label_rev = pd.Series(src_labels.index, index=src_labels.values)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...