dargones / anceps Goto Github PK
View Code? Open in Web Editor NEWA Latin scansion tool (with a particular focus on trimeters)
A Latin scansion tool (with a particular focus on trimeters)
Hi Dargones,
I was experimenting with small datasets of various meters. In the case of the glyconeus and the iambic dimeter, I used Seneca Medea 75โ92 and 849-855 respectively. These verses do not have elisions, which crashes Anceps, as it tries to calculate the frequency of elisions in the given dataset. Maybe you could add a try or a small check for zero in the calculate_frequencies function in analyze.py. The error almost never occurs, and only for elisions of course, but just wanted to let you know :)
I am running Anceps to create a training set for neural networks. When running the program on Seneca's Medea, it crashes on line 662, patrioque pendet. It also seems to have trouble somewhere around Hercules Oetaeus' lines 276-279:
perfer manus quocumque quid cessas dea
utere furente quod iubes fieri nefas
reperi quid haeres ipsa iam cesses licet
haec ira satis est nvt pectoris sani parum
The error reads:
File "anceps/src/scan/word.py", line 103, in __get_prefix
prefix = Word.PREFIX.match(option.scansion).group()
AttributeError: 'NoneType' object has no attribute 'group'
If fixed it in the Word class, by adding a try to the init function:
if next_word:
try:
self.next_word_prefix = next_word.__get_prefix()
except:
self.next_word_prefix = None
else:
self.next_word_prefix = None
The scansion will fail, but that is fine for my use case. As long as the other lines are scanned ๐ก๏ธ
I am not sure why Oetaeus goes wrong :S Anyway, great tool!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.