-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
52 lines (46 loc) · 1.1 KB
/
config.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
__all__ = ["InteractionNetworkConfig", "FamilyNetworkConfig", "WikiConfig"]
class WikiConfig:
# relevant fields to parse in character info box on coppermind.net
info_fields = (
"name",
"aliases",
"titles",
"books",
"world",
"abilities",
"universe",
"family",
"parents",
"siblings",
"relatives",
"spouse",
"children",
"bonded",
"descendants",
"ancestors",
"residence",
"groups",
"nation",
"nationality",
"profession",
"ethnicity",
"species",
"occupation",
"unnamed",
"died",
)
class InteractionNetworkConfig:
run_size = 25 # tokens
prev_cxt_lines = 4
next_cxt_lines = 3
default_min_weight = 2
class FamilyNetworkConfig:
default_min_component_size = 2
relation_fields = (
"parents",
"siblings",
"spouse",
"children",
"bonded",
) # currently: nuclear family only
_unused_fields = ("descendants", "ancestors", "family", "relatives")