-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit af0bcc4
Showing
8 changed files
with
90,412 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
''' ANOTACE nefunguje protoze musim mit zvlast regex pro vertikalizovany text a pro nevertikalizovany | ||
def an_word(): | ||
global op | ||
op = re.sub(r"(\w*)", r"<w>\1</w>", op) | ||
def an_s(): | ||
global op | ||
op = re.sub("(\b((?!=|\.).)+(.)\b[.!?]", r"<s>\1</s>", op) | ||
def anottate():Y | ||
a = input("Annotation on: Word level (W), Sentence level (S) or both (B)? If changed your mind write anything else.") | ||
if a == "W": | ||
print("Word level annotation") | ||
an_word() | ||
output() | ||
if a == "S": | ||
print("Sentence level annotation") | ||
an_s() | ||
output() | ||
if a == "B": | ||
print("Word and sentence level annotation") | ||
an_word() | ||
an_s() | ||
output() | ||
else: | ||
print("No annotation") | ||
output() | ||
''' |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.