This file contains hidden or 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
from tqdm import tqdm | |
input_path = "./test_word_per_line.txt" | |
output_path = "./test_cleaned.txt" | |
curr_id = "" | |
curr_sent = [] | |
with open(output_path,mode="wt", encoding="utf-8") as f: | |
lines = open(input_path).readlines() | |
for idx, line in tqdm(enumerate(lines)): | |
if idx == 0: |
This file contains hidden or 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
from mpl_toolkits.mplot3d import Axes3D | |
import matplotlib.pyplot as plt | |
from matplotlib import cm | |
from matplotlib.ticker import LinearLocator | |
import numpy as np | |
fig = plt.figure() | |
ax = fig.gca(projection='3d') |
This file contains hidden or 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
{ | |
"corpus": [ | |
{ | |
"words": [ | |
{ | |
"pos": "N", | |
"text": "Căn_cứ" | |
}, | |
{ | |
"pos": "N", |