Questions tagged [linguistics]

Linguistics is the scientific study of language and its structure, including the study of morphology, syntax, phonetics, and semantics.

Linguistics is the scientific study of language and its structure, including the study of morphology, syntax, phonetics, and semantics.

Specific branches of linguistics include sociolinguistics, dialectology, psycholinguistics, computational linguistics, historical-comparative linguistics, and applied linguistics.

323 questions
0
votes
3 answers

Ruby Linguistics gem

I try to convert number to words but I have a problem: >> (91.80).en.numwords => "ninety-one point eight" I want it to be "ninety-one point eighty". I use Linguistics gem. Do you know some solution for it (prefer with Linguistics).
Sebastian
  • 2,618
  • 3
  • 25
  • 32
0
votes
3 answers

The intersection of Machine Learning and Programming Languages fields

While my research area is in Machine Learning (ML), I am required to take a project in Programming Languages (PL). Therefore, I'm looking to find a project that is inclined towards ML. One intersection I know of between the two fields is Natural…
IssamLaradji
  • 6,637
  • 8
  • 43
  • 68
0
votes
1 answer

Searching a database not including plurals in javascript code

I have a program where I give it a noun and it checks in its database with a table of nouns, to see if that noun is there. That works find for singular nouns. eg. User types, 'What is a tree?' program searches 'tree'. But for 'What are trees?…
Lindsay W
  • 43
  • 7
0
votes
2 answers

How to trim text to certain length, full sentences?

I'm looking for a solution for trimming an unknown text to certain length. Keeping only full sentences. So text like this "Were you born 1. 3. 1987 in Prague? Štěpán Jr. lives there for 3 years now! " should be turned into "Were you born 1. 3.…
Tomáš Fejfar
  • 11,129
  • 8
  • 54
  • 82
0
votes
4 answers

Trie? Matching words with trailing characters in python

This is a little different from most trie problems on stackoverflow (yes, I've spent time searching and reading), so please bear with me. I have FILE A with words like: allow*, apolog*, etc. There are in total tens of thousands of such entries. And…
K L
  • 1,373
  • 2
  • 15
  • 21
0
votes
2 answers

Create a frequency table that captures popular substrings within strings of a certain length - Python

I'm trying to compute frequency analysis on a Swahili corpus which I'm compiling. At the moment, this is what I have: import os import sys from collections import Counter import re path = 'C:\Python27\corpus\\' cnt = Counter() listing =…
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
0
votes
2 answers

ERROR: invalid mode ('r') - Cannot conduct Cognate Analysis using LingPy in Python 2.7

I'm using the LingPy 1.0.1 library for Python 2.7, attempting to conduct Cognate Analysis on a single tab-delimited list of Spanish-English words I created. The list is named SE.lxs and looks like this: ID Words Spanish 1 dog pero 2 cat …
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
0
votes
1 answer

Dataset for common words to construct basic sentences

So I am making a "fridge magnet" interactive and I was trying to figure out a valid dataset for words to have for the user to drag around. I am using this data set .. but it is not that…
samccone
  • 10,746
  • 7
  • 43
  • 50
-1
votes
1 answer

How do I study linguistic features of NLP libraries like spacy/NLTK in-depth?

My Objective I am trying to do Natural Language Processing(NLU to be precise) with spaCy. But the more I dive into this wonderful library, the more I realize that I need to understand some linguistics first. The Problem The problem is, spacy…
Esa Anjum
  • 13
  • 3
-1
votes
1 answer

I am getting a 'LookupError' when using hunspell.spell("my_word")

I am importing spell successfully, but getting a LookupError when using it. from hunspell import spell print(spell('Heello')) --------------------------------------------------------------------------- LookupError …
Samir Ahmane
  • 830
  • 7
  • 22
-1
votes
1 answer

Text Similarity - Cosine - Control

I would like to ask you, if anybody could check my code, because it was behaving weird - not working, giving me errors to suddenly working without changing anything - the code will be at the bottom. Background: So my goal is to calculate text…
-1
votes
1 answer

How to read/fetch Gujarati language in PDF format, using Python?

We have a PDF in Gujarati language. How to read it using Python language. I can read English based PDF document using Python. I want to do the same with a Gujarati based PDF document. Like this sample PDF in Gujarati language how to read it exactly…
Taasha
  • 1
  • 1
-1
votes
1 answer

How to find freqeuntly occuring phrases in a text document

I have a text document that has multiple paragraphs. I need to find frequently occurring phrases together. For example Patient name xyz phone no 12345 emailid xyz@abc.com Patient name abc address some us address Comparing these lines the common…
-1
votes
2 answers

Word meaning the arrangement of sounds or syllables to form words?

See Title. An answer would also satisfy: Syntax is to Sentence as ______ is to Word? Or, in more code-friendly terms Syntax is to Function Logic as ______ is to Construct Logic? (idk, I tried)
SnSation
  • 73
  • 4
-1
votes
2 answers

Can Machine Learning be used for Natural Language Understanding

This is based on my earlier question. Can I use machine learning algorithms to help me with understanding sentences? (I will use a closely related example as I used in my previous question). For example, I want my algorithm/code to start a program…
1 2 3
21
22