필터 지우기
필터 지우기

Can Matlab distinguish between meaningful and meaningless strings?

조회 수: 1 (최근 30일)
BBB
BBB 2019년 10월 17일
댓글: BBB 2019년 10월 24일
Hi, is there any way to ask matlab to filter out a meaningful string statement (i.e., like a proper sentence e.g., 'It is Sunday today') from a bunch of meaningless string statements (i.e., not a proper sentence e.g., 'ksjhgd2ss)? I am trying to write some if-statements that can essentially help filter out the meaningful sentences from a bunch of meaningless string sentences. Please Help!
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 17일
편집: KALYAN ACHARJYA 2019년 10월 17일
Are you considering all texts or some specifics only?
Nice question, but not so easy to answer. I am following ..
BBB
BBB 2019년 10월 17일
A single specific sentence out of a bunch of meaningless sentences.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 10월 17일
The field of study of rigorously distinguishing between "meaningful" sentences and those that are not, is called Logical Positivism. My understanding is that it is considered a dead end except amongst people who are followers of philosopher Ayn Rand.
If you were willing to restrict the vocabulary to a limited set and were willing to establish a strict grammar, then for some kinds of grammar it is possible to write machine parsers to recognize all sentences that are "well formed" under those rules. But it is not simple to write rules properly that can distinguish that "The orange is green" is completely sensible, and that "The orange is cyan" is maybe okay (spray paint the citrus fruit cyan) but that "The cyan is orange" is meaningless.
  댓글 수: 2
Guillaume
Guillaume 2019년 10월 17일
In other words, as asked, the question is probably worthy of a PhD or more advanced research...
BBB
BBB 2019년 10월 24일
Thank you for your response :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by