venkatasg / DeTeXt

iOS app that detects LaTeX symbols from drawings. Built using PencilKit, SwiftUI, Combine and CoreML for iOS 14(or greater) and macOS 11(or greater).
https://venkatasg.net/apps/detext
MIT License
122 stars 10 forks source link

Missing LaTeX commands: `\land` and `\lor` #6

Closed xpe closed 1 day ago

xpe commented 5 days ago

DeTeXt doesn't know about \land:

image

DeTeXt doesn't know about \lor:

image
xpe commented 5 days ago

I have a guess as the source of the mistake: \land and \wedge are synonymous. Maybe DeTeXt does not correctly import and handle synonymous commands?

See also:

xpe commented 5 days ago

The list of LaTeX commands to import can be found here: https://github.com/venkatasg/DeTeXt-Supplementary/blob/main/class_names.txt -- as I suspected, \wedge is present but \land and \lor are missing.

This is the definitive list from what I can tell : https://ctan.org/pkg/comprehensive?lang=en

venkatasg commented 3 days ago

Yeah I only include commands that are in my training set of images, which are from the Detexify public repository. If I don't have data for a particular command, I don't include those commands since the neural network won't recognize them anyway.

xpe commented 2 days ago

@venkatasg Ok, thanks. What Detexify repository has the training images? Perhaps I can contribute over there.

venkatasg commented 1 day ago

It isn't actively maintained anymore unfortunately, but here it is: https://github.com/kirel/detexify-data

venkatasg commented 1 day ago

Beyond training dataset.